/// <summary> /// Convert exception to our internal format /// </summary> /// <param name="exception">exception</param> /// <returns>our format</returns> public ErrorReportException ConvertException(ReceivedReportException exception) { var ex = new ErrorReportException { AssemblyName = exception.AssemblyName, BaseClasses = exception.BaseClasses, Everything = exception.Everything, FullName = exception.FullName, Message = exception.Message, Name = exception.Name, Namespace = exception.Namespace, StackTrace = exception.StackTrace }; if (exception.InnerException != null) { ex.InnerException = ConvertException(exception.InnerException); } return(ex); }
private ErrorReportException ConvertException(ReceivedReportException dto) { var entity = new ErrorReportException { Message = dto.Message, FullName = dto.FullName, Name = dto.Name, AssemblyName = dto.AssemblyName, BaseClasses = dto.BaseClasses, Everything = dto.Everything, Namespace = dto.Namespace, StackTrace = dto.StackTrace }; if (dto.InnerException != null) { entity.InnerException = ConvertException(dto.InnerException); } return(entity); }
private static ReceivedReportException ConvertException(NewReportException exception) { var ex = new ReceivedReportException { Name = exception.Name, AssemblyName = exception.AssemblyName, BaseClasses = exception.BaseClasses, Everything = exception.Everything, FullName = exception.FullName, Message = exception.Message, Namespace = exception.Namespace, Properties = exception.Properties, StackTrace = exception.StackTrace }; if (exception.InnerException != null) { ex.InnerException = ConvertException(exception.InnerException); } return(ex); }