public ApiExceptionResponse(string message, Exception exception) : this() { Message = message; if (exception != null) { ExceptionDescription = new ExceptionDescription(exception); } }
public ExceptionDescription(Exception exception) : this() { Type = exception.GetType().ToString(); Message = exception.Message; StackTrace = exception.StackTrace; if (exception.InnerException != null) { InnerException = new ExceptionDescription(exception.InnerException); } }