AppException class

Handling application errors

Implemented types

Constructors

AppException(int code, String message)
AppException.badRequest([String message = 'Bad Request'])
AppException.forbidden([String message = 'Forbidden'])
AppException.methodNotAllowed([String message = 'Method Not Allowed'])
AppException.notFound([String message = 'Not Found'])
AppException.unauthorized([String message = 'Unauthorized'])
AppException.unprocessableEntity(List<Validate>? validates, [String message = 'Unprocessable Entity'])

Properties

code int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validates List<Validate>?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited