Exemplo n.º 1
0
 public ResponseException(HttpStatusCode e, string reason, Utilities.ExceptionType type = Utilities.ExceptionType.Unknown, params object[] arguments) :
     this(e, reason, "", type, arguments)
 {
 }
Exemplo n.º 2
0
 public ResponseException(Exception e, HttpStatusCode code, Utilities.ExceptionType type, params object[] arguments) :
     this(HttpStatusCode.InternalServerError, e.Message, e.InnerException?.Message, type, arguments)
 {
     CheckAllExceptions(e, arguments);
 }
Exemplo n.º 3
0
 public ResponseException(HttpStatusCode code, string reason, string innerMessage = "", Utilities.ExceptionType type = Utilities.ExceptionType.Unknown,
                          params object[] arguments)
 {
     ExceptionData = new ExceptionData
     {
         Reason       = reason,
         InnerMessage = innerMessage,
         Type         = type,
         Code         = code,
         Arguments    = arguments,
         Time         = Utilities.GetServerTime()
     };
 }