SolanaError class
The core error class for all Solana Kit errors.
Each error carries a SolanaErrorCode code and an optional context map containing structured data about the error.
- Implemented types
- Available extensions
Constructors
-
SolanaError(SolanaErrorCode code, [Map<
String, Object?> ? context]) -
Creates a SolanaError with the given
codeand optionalcontext.
Properties
- code → SolanaErrorCode
-
The error code from
SolanaErrorCode.final -
context
→ Map<
String, Object?> -
Structured context data for this error.
final
- domain → SolanaErrorDomain
-
Available on SolanaError, provided by the SolanaErrorDomainExtension extension
The high-level domain for this SolanaError.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isInDomain(
SolanaErrorDomain domain) → bool -
Available on SolanaError, provided by the SolanaErrorDomainExtension extension
Returnstrueif this error belongs todomain. -
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