CrossmintException class
Base class for every exception the Crossmint SDK throws.
Every subclass carries a code (CrossmintErrorCode) so consumer code
can switch on error categories instead of string-matching on message.
The optional cause preserves the original error / payload that
triggered this exception — useful for logging and programmatic handling.
- Implemented types
- Implementers
Constructors
- CrossmintException(String message, {CrossmintErrorCode code = CrossmintErrorCode.unknown, Object? cause})
-
Creates a generic
CrossmintException. Prefer throwing a subclass scoped to the failure domain (auth / wallet / signer / …).const
Properties
- cause → Object?
-
The underlying cause — typically a lower-level exception or an API
response payload. Inspect this for extra detail when diagnosing errors.
final
- code → CrossmintErrorCode
-
A machine-readable error code for programmatic
switch/casehandling.final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable message suitable for logs. Not localized — do not show
this directly to end users.
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