public DirectSpException(string message, HttpStatusCode status = HttpStatusCode.BadRequest) { SpCallError = new SpCallError() { ErrorType = GetType().Name, ErrorMessage = message }; StatusCode = status; }
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() };; }
public DirectSpException(SpCallError spCallError, Exception innerException = null) : base(null, innerException) { StatusCode = HttpStatusCode.BadRequest; SpCallError = spCallError; }