I am investigating a stack trace and I came to this conclusion:
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
Can someone explain what Exception rethrown at [0]: means and show a simple script how to replicate it? I tried to play it with try / catch / throw, try / catch ex / throw ex etc., but I couldn’t.
source share