NotFoundException class
The endpoint or record does not exist.
Distinct from FetchDataException because a 404 is usually a wrong id or a stale URL, not a broken server, and callers respond to the two differently.
- Inheritance
-
- Object
- HttpException
- NotFoundException
Constructors
- NotFoundException(String message, {int? status})
Properties
- body → String?
-
The response body exactly as it arrived, when there was one.
finalinherited
- code → String?
-
The API's machine-readable reason, when it sent one.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The response body, or a description of the failure when there was no body.
finalinherited
- prefix → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int?
-
The HTTP status the API answered with, when the failure came from a
response at all.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
The failure, without the response body.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited