示例#1
0
 public DirectSpException(string message, HttpStatusCode status = HttpStatusCode.BadRequest)
 {
     SpCallError = new SpCallError()
     {
         ErrorType    = GetType().Name,
         ErrorMessage = message
     };
     StatusCode = status;
 }
示例#2
0
 public DirectSpException(Exception ex)
     : base(null, ex)
 {
     StatusCode  = HttpStatusCode.BadRequest;
     SpCallError = new SpCallError()
     {
         ErrorType = ex.GetType().Name, ErrorName = ex.GetType().ToString(), ErrorMessage = ex.Message, ErrorDescription = ex.ToString()
     };;
 }
示例#3
0
 public DirectSpException(SpCallError spCallError, Exception innerException = null)
     : base(null, innerException)
 {
     StatusCode  = HttpStatusCode.BadRequest;
     SpCallError = spCallError;
 }