ClientException class

Implemented types

Constructors

ClientException({required String message, Uri? uri, int? statusCode, String? reasonPhrase})
Constructs a ClientException.
ClientException.fromResponse(Response response)
Constructs a ClientException from the response.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The message of the exception.
final
reasonPhrase String?
The reason phrase of the response if applicable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The status code of the response if applicable.
final
uri Uri?
The uri of the request if applicable.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkIsSuccessStatusCode(Response response) → Response
Checks that the response has a success status code.