HttpError class abstract

The object describing an HTTP error.

Constructors

HttpError.fromJson(Map<String, dynamic> json)
Alternate constructor that creates an HttpError from a json.
factory

Properties

body → String?
The body of the HTTP response, if any.
no setter
hashCode → int
The hash code for this object.
no setterinherited
headers → ResponseHeaders?
The headers of the HTTP response, if any.
no setter
method → String?
The HTTP method of the request that failed, if any.
no setter
requestUrl → String?
The exact URL of the request that failed, if known.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
The HTTP status code returned by the server, if known.
no setter
underlying → String?
The underlying error, if any, that led to this error.
no setter

Methods

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