ResourceException class

Errors occurring while accessing a resource.

Inheritance
Implementers

Properties

args List<Object>
finalinherited
cause Object?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
quantity int?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userMessageId String
finalinherited

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
unavailable ResourceException
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