SdkError class
Describes an SDK failure in a transport-agnostic way.
Constructors
- SdkError.new({required ErrorType type, required String message, int? statusCode, dynamic raw})
-
Creates an SDK error value.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error message.
final
- raw → dynamic
-
Raw error payload or response body, when preserved.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
HTTP status code when one was available.
final
- type → ErrorType
-
The high-level category of failure.
final
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