CrossmintAuthRejectedException class final
Thrown when the user cancels an OTP challenge (via CrossmintWalletOtpController.reject or equivalent).
- Inheritance
-
- Object
- CrossmintException
- CrossmintAuthRejectedException
Constructors
- CrossmintAuthRejectedException()
-
Creates the rejection exception. Always carries
CrossmintErrorCode.authRejected.
const
Properties
- apiErrorCode → String?
-
The
codethe Crossmint API put in its error envelope, verbatim (for exampleLAST_RECOVERY_SIGNER), or null when the failure did not come from an API response or the response carried none. Lets callers branch on the backend's own code even when code has no member for it.finalinherited - cause → Object?
-
The underlying cause — typically a lower-level exception or an API
response payload. Inspect this for extra detail when diagnosing errors.
finalinherited
- code → CrossmintErrorCode
-
A machine-readable error code for programmatic
switch/casehandling.finalinherited - 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.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The HTTP status of the response that reported this failure (for example
404), or null when no HTTP response did, such as a transport error, a timeout, or a 2xx body the SDK could not read. Lets callers tell a request the API rejected (4xx) from a server failure without parsing message.finalinherited
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