Basically the same as feathers-errors.
Constructors
- AngelHttpException(error, {bool includeRealError: false, StackTrace stackTrace})
-
Throws a 500 Internal Server Error. Set includeRealException to true to print include the actual exception along with this error. Useful flag for development vs. production.
- AngelHttpException.BadRequest({String message: '400 Bad Request', List<String> errors: const []})
-
Throws a 400 Bad Request error, including an optional arrray of (validation?) errors you specify.
- AngelHttpException.Conflict({String message: '409 Conflict'})
-
Throws a 409 Conflict error.
- AngelHttpException.Forbidden({String message: '403 Forbidden'})
-
Throws a 403 Forbidden error.
- AngelHttpException.MethodNotAllowed({String message: '405 Method Not Allowed'})
-
Throws a 405 Method Not Allowed error.
- AngelHttpException.MethodTimeout({String message: '408 Timeout'})
-
Throws a 408 Timeout error.
- AngelHttpException.NotAcceptable({String message: '406 Not Acceptable'})
-
Throws a 406 Not Acceptable error.
- AngelHttpException.NotAuthenticated({String message: '401 Not Authenticated'})
-
Throws a 401 Not Authenticated error.
- AngelHttpException.NotFound({String message: '404 Not Found'})
-
Throws a 404 Not Found error.
- AngelHttpException.NotImplemented({String message: '501 Not Implemented'})
-
Throws a 501 Not Implemented error.
- AngelHttpException.NotProcessable({String message: '422 Not Processable'})
-
Throws a 422 Not Processable error.
- AngelHttpException.PaymentRequired({String message: '402 Payment Required'})
-
Throws a 402 Payment Required error.
-
Throws a 503 Unavailable error.
Properties
- errors → List<String>
-
read / write, inherited
- hashCode → int
-
Get a hash code for this object.…
read-only, inherited - message → String
-
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - statusCode → int
-
read / write, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
toMap(
) → Map -
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited