DefaultApiException class
Default API exception (for unhandled status codes).
- Inheritance
-
- Object
- NetworkException
- ApiException
- DefaultApiException
Constructors
- DefaultApiException({int statusCode = 400, Object? cause})
-
const
Properties
- cause → Object?
-
The underlying error (for example a
DioException) that caused this exception, if any. Useful for logging and debugging.finalinherited - errorCode → String
-
Stable code identifying this error, see NetworkErrorCode.
finalinherited
- errorMessage → String
-
General, user-facing error message.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRetryable → bool
-
Whether retrying the same request later may succeed
(timeouts, connectivity problems, throttling, temporary server errors).
no setterinherited
- message → String
-
The message describing the error.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
HTTP status code, or
-1if it is unknown.finalinherited
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