GenericError<R> class final

Any "other" error not covered by the above cases. If a DioException is present, it has an error status we don't handle. Often this error will occur when no response was received from the server.

Inheritance
Available extensions

Constructors

GenericError({DioException? error, required String message, required bool isConnectionIssue})
const

Properties

error → DioException?
final
hashCode int
The hash code for this object.
no setterinherited
isConnectionIssue bool
final
isSuccess bool

Available on NetworkResponse<R>, provided by the NetworkResponseX extension

Whether this NetworkResponse should be considered successful
no setter
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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