Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt

Use this file to discover all available pages before exploring further.

Class Base class for every exception the Crossmint SDK throws.
class CrossmintException implements Exception
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.

Constructors

CrossmintException

const CrossmintException(
  this.message, {
  this.code = CrossmintErrorCode.unknown,
  this.cause,
})
Creates a generic CrossmintException. Prefer throwing a subclass scoped to the failure domain (auth / wallet / signer / …).

Properties

message

final String message
Human-readable message suitable for logs. Not localized — do not show this directly to end users.

code

final CrossmintErrorCode code
A machine-readable error code for programmatic switch/case handling.

cause

final Object? cause
The underlying cause — typically a lower-level exception or an API response payload. Inspect this for extra detail when diagnosing errors.

Methods

toString

String toString()