public ExceptionErrorInfo(Exception exception)
 {
     _exception       = exception;
     ErrorStatus      = ExceptionErrorUtilities.GetExceptionStatus(exception);
     ErrorType        = ExceptionErrorUtilities.GetExceptionType(exception);
     ErrorDescription = exception.Message;
 }
示例#2
0
 public RestApiException(string message, Exception innerException)
     : base(message, innerException)
 {
     ErrorStatus = ExceptionErrorUtilities.GetExceptionStatus(innerException);
 }