示例#1
0
 protected ServiceResponse(string errorMessage, object errorDetails = null, ErrorResponseType errorType = ErrorResponseType.Unknown)
 {
     Throw.IfNullOrWhiteSpace(errorMessage, nameof(errorMessage));
     IsError      = true;
     ErrorMessage = errorMessage;
     ErrorDetails = errorDetails;
     ErrorType    = errorType;
 }
示例#2
0
 public ServiceErrorException(string message, ErrorResponseType serviceErrorResponse)
     : base(message)
 {
     _serviceErrorResponse = serviceErrorResponse;
 }