Beispiel #1
0
        // Token: 0x0600003B RID: 59 RVA: 0x000029C8 File Offset: 0x00000BC8
        private static ExceptionWrapper Wrap(Exception ex)
        {
            ExceptionWrapper exceptionWrapper = new ExceptionWrapper();

            exceptionWrapper.Data          = ex.Data;
            exceptionWrapper.Message       = ex.Message;
            exceptionWrapper.StackTrace    = ex.StackTrace;
            exceptionWrapper.ExceptionType = ex.GetType().AssemblyQualifiedName;
            if (ex.InnerException != null)
            {
                exceptionWrapper.InnerException = ExceptionWrapper.Wrap(ex.InnerException);
            }
            return(exceptionWrapper);
        }
Beispiel #2
0
 // Token: 0x0600003A RID: 58 RVA: 0x000029BF File Offset: 0x00000BBF
 public static ExceptionWrapper WrapEx(Exception ex)
 {
     return(ExceptionWrapper.Wrap(ex));
 }