ResourceException class
Errors occurring while accessing a resource.
- Inheritance
-
- Object
- UserException
- ResourceException
- Implementers
Properties
Methods
-
getUserMessage(
LocalizationsRepository localizationsRepository, {bool includesCauses = true}) → String -
Gets the localized user-facing message for this exception.
inherited
-
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
Static Properties
- cancelled → ResourceException
-
The request was cancelled by the caller.
no setter
- forbidden → ResourceException
-
Equivalent to a 403 HTTP error.
no setter
- notFound → ResourceException
-
Equivalent to a 404 HTTP error.
no setter
-
Equivalent to a 503 HTTP error.
no setter
Static Methods
-
badRequest(
Map< String, String> parameters, {Exception? cause}) → BadRequest -
other(
Exception cause) → ResourceException - For any other error, such as HTTP 500.
-
outOfMemory(
OutOfMemoryError cause) → ResourceException - Equivalent to a 507 HTTP error.
-
wrap(
dynamic e) → ResourceException