public ResponseException(HttpStatusCode e, string reason, Utilities.ExceptionType type = Utilities.ExceptionType.Unknown, params object[] arguments) : this(e, reason, "", type, arguments) { }
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); }
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() }; }