HttpError class
Constructors
- HttpError({required String message, required Uri uri, required int statusCode})
- HttpError.fromResponse(Response response)
-
factory
Properties
-
context
→ Map<
String, dynamic> -
The context around the exception. Use this for scoped-values and states
that may have contributed to the exception and might be useful in reproduction.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The exception message, this should not use interpolation.
Store exception context in context, appropriately.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The exception stack trace
finalinherited
- statusCode → int
-
final
- uri → Uri
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toResponse(
[int statusCode = HttpStatus.internalServerError]) → ErrorResponse -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited