ApiException class

Exception thrown when an API request fails.

Implemented types

Constructors

ApiException({required int code, required String message, dynamic data})
Creates an ApiException with the given code, message, and optional data.

Properties

code → int
The HTTP status code.
final
data → dynamic
Optional response data.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A description of the error.
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