NetworkResponseException class

Inheritance

Constructors

NetworkResponseException({required String message, required NetworkErrorCode code, required int? statusCode, dynamic responseData})
Creates a NetworkResponseException.
const
NetworkResponseException.fromDioException(DioException err)
Factory constructor to create a NetworkResponseException from a DioException.
factory

Properties

code → NetworkErrorCode
A stable error code representing the type of network error. Use this code in the application layer to look up localized messages.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
A default diagnostic message in English. Can be used as a fallback if localization for the specific code is not available.
finalinherited
responseData → dynamic
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int?
The HTTP status code associated with the error, if available.
finalinherited

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