小编xha*_*fan的帖子

在 [0] 处重新抛出异常:

我正在调查堆栈跟踪,我遇到了这个输出:

Server stack trace: 
   ...
   at MyProject.Data.Notifications.NotificationCache.InitialisedCache() in NotificationCache.cs: line 72
   at System.Lazy`1.CreateValue()

Exception rethrown at [0]: 
   at System.Lazy`1.get_Value()
   at MyProject.Data.Notifications.NotificationCache.AddItemToCache(NotificationDto dto) in NotificationCache.cs: line 82
bla bla bla
Run Code Online (Sandbox Code Playgroud)

有人可以解释一下这Exception rethrown at [0]:意味着什么并展示一些如何复制它的简单场景吗?我试图通过 try/catch/throw、try/catch ex/throw ex 等复制它,但我不能。

.net exception-handling stack-trace

5
推荐指数
1
解决办法
4562
查看次数

标签 统计

.net ×1

exception-handling ×1

stack-trace ×1