OZContractErrorCodes class

Reference constants for a subset of the OpenZeppelin smart-account contract's on-chain error codes.

When the contract rejects a call, the code appears inside the message of a SmartAccountTransactionException (for example Error(Contract, #3016)). The SDK surfaces the raw error but does not parse or map contract error codes itself; callers can extract the code from the message and compare it against these constants. The numeric range is 3xxx (credential errors), aligned with the contract's own Error enum.

Properties

hashCode int
The hash code for this object.
no setterinherited
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

contextRuleIdsLengthMismatch → const int
The number of context-rule IDs in the auth payload does not match the expected count.
keyDataTooLarge → const int
The key_data field on a signer exceeds the maximum allowed size.
mathOverflow → const int
Integer arithmetic overflow occurred in the contract.
nameTooLong → const int
A name field (e.g. context-rule name) exceeds the maximum allowed length.
unauthorizedSigner → const int
The signer is not authorised to sign the given context rule.