예제 #1
0
 public static CapturedExceptionWrapper Capture(Exception ex)
 {
     Debug.Assert(ex is not null);
     if (ex is OperationCanceledException oce)
     {
         return(new CapturedExceptionWrapper(oce));
     }
     else
     {
         return(new CapturedExceptionWrapper(ExceptionHolder.Capture(ex)));
     }
 }
예제 #2
0
 private CapturedExceptionWrapper(ExceptionHolder holder)
 {
     _exception = holder;
 }