AppNetworkResponseException<OriginalException extends Exception, DataType> class

Response exception.

Inheritance

Constructors

AppNetworkResponseException({required OriginalException exception, int? statusCode, DataType? data})
Create a new response exception with the specified statusCode, original exception, and response data.

Properties

data → DataType?
Response data, if any.
final
exception → OriginalException
Exception which was caught.
finalinherited
hasData bool
True if the response contains data.
no setter
hashCode int
The hash code for this object.
no setterinherited
reason AppNetworkExceptionReason
The reason the network exception ocurred.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP status code, if any.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateStatusCode(bool evaluator(int statusCode)) bool
If the status code is null, returns false. Otherwise, allows the given closure evaluator to validate the given http integer status code.

Operators

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