SmartAccountErrorCode enum
Numeric error codes for Smart Account operations.
Codes are partitioned into ranges by category so a numeric value identifies the failure domain at a glance:
1xxxConfiguration errors2xxxWallet state errors3xxxCredential errors4xxxWebAuthn errors5xxxTransaction errors6xxxSigner errors7xxxValidation errors8xxxStorage errors9xxxSession errors10xxxIndexer errors
Values
- invalidConfig → const SmartAccountErrorCode
-
Configuration is structurally invalid.
const SmartAccountErrorCode(1001) - missingConfig → const SmartAccountErrorCode
-
A required configuration parameter is missing.
const SmartAccountErrorCode(1002) - walletNotConnected → const SmartAccountErrorCode
-
Operation requires a connected wallet, but none is connected.
const SmartAccountErrorCode(2001) - walletAlreadyExists → const SmartAccountErrorCode
-
A wallet with the same identifier already exists.
const SmartAccountErrorCode(2002) - walletNotFound → const SmartAccountErrorCode
-
const SmartAccountErrorCode(2003) - credentialNotFound → const SmartAccountErrorCode
-
const SmartAccountErrorCode(3001) - credentialAlreadyExists → const SmartAccountErrorCode
-
A credential with the same identifier already exists.
const SmartAccountErrorCode(3002) - credentialInvalid → const SmartAccountErrorCode
-
const SmartAccountErrorCode(3003) - credentialDeploymentFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(3004) - webauthnRegistrationFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(4001) - webauthnAuthenticationFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(4002) - webauthnNotSupported → const SmartAccountErrorCode
-
const SmartAccountErrorCode(4003) - webauthnCancelled → const SmartAccountErrorCode
-
const SmartAccountErrorCode(4004) - transactionSimulationFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(5001) - transactionSigningFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(5002) - transactionSubmissionFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(5003) - transactionTimeout → const SmartAccountErrorCode
-
Transaction did not reach a final state within the allotted time.
const SmartAccountErrorCode(5004) - signerNotFound → const SmartAccountErrorCode
-
const SmartAccountErrorCode(6001) - signerInvalid → const SmartAccountErrorCode
-
const SmartAccountErrorCode(6002) - invalidAddress → const SmartAccountErrorCode
-
The supplied address is not a valid Stellar address.
const SmartAccountErrorCode(7001) - invalidAmount → const SmartAccountErrorCode
-
const SmartAccountErrorCode(7002) - invalidInput → const SmartAccountErrorCode
-
const SmartAccountErrorCode(7003) - storageReadFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(8001) - storageWriteFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(8002) - sessionExpired → const SmartAccountErrorCode
-
const SmartAccountErrorCode(9001) - sessionInvalid → const SmartAccountErrorCode
-
const SmartAccountErrorCode(9002) - indexerRequestFailed → const SmartAccountErrorCode
-
const SmartAccountErrorCode(10001) - indexerTimeout → const SmartAccountErrorCode
-
const SmartAccountErrorCode(10002)
Properties
- code → int
-
Numeric error code suitable for programmatic comparison and diagnostics.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
SmartAccountErrorCode> - A constant List of the values in this enum, in order of their declaration.