NotFoundException class
Exception thrown when a requested resource is not found.
This exception is typically thrown when a database record, file, or API endpoint does not exist.
- Inheritance
-
- Object
- AppException
- NotFoundException
Constructors
- NotFoundException(String message, {dynamic details})
Properties
- details → dynamic
-
Optional additional information for debugging.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance → String?
-
A URI reference that identifies the specific occurrence of the problem.
finalinherited
- message → String
-
Human-readable error message (detail).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
HTTP-like status code (defaults to 500).
finalinherited
- title → String
-
A short, human-readable summary of the problem type.
finalinherited
- type → String
-
A URI reference that identifies the problem type.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toResponse(
) → Map< String, dynamic> -
Converts the exception to a serializable response map (RFC 7807).
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited