ApiException class
An exception thrown by the API client.
This is a wrapper around the underlying network exceptions. This is used to provide a standard exception type for clients to handle.
- Implemented types
- Annotations
-
- @immutable
Constructors
- ApiException.new(int code, String? message)
-
const
- ApiException.unhandled(int code)
-
const
- ApiException.withInner(int code, String? message, Exception? innerException, StackTrace? stackTrace)
-
const
Properties
- code → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerException → Exception?
-
final
- message → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
final
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