Gallio.Common.Diagnostics.ExceptionData Convert(ExceptionResult result) { if (result == null) { return(null); } Gallio.Common.Diagnostics.ExceptionData inner = Convert(result.InnerExceptionResult); return(new Gallio.Common.Diagnostics.ExceptionData(result.TypeName, result.Message, result.StackTrace, new PropertySet(), inner)); }
Gallio.Common.Diagnostics.ExceptionData ConvertException(Exception exception) { if (exception == null) { return(null); } Gallio.Common.Diagnostics.ExceptionData inner = this.ConvertException(exception.InnerException); return(new Gallio.Common.Diagnostics.ExceptionData(exception.GetType().ToString(), exception.Message, exception.StackTrace ?? "", new PropertySet(), inner)); }