Skip to main content

cougr_core/accounts/
error.rs

1use soroban_sdk::contracterror;
2
3/// Account-related errors for the Cougr framework.
4#[contracterror]
5#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
6#[repr(u32)]
7pub enum AccountError {
8    Unauthorized = 20,
9    SessionExpired = 21,
10    InvalidSignature = 22,
11    CapabilityNotSupported = 23,
12    SessionLimitReached = 24,
13    InvalidScope = 25,
14    BatchEmpty = 26,
15    BatchTooLarge = 27,
16    StorageError = 28,
17    GuardianAlreadyExists = 29,
18    RecoveryNotInitiated = 30,
19    TimelockNotExpired = 31,
20    ThresholdNotMet = 32,
21    MaxGuardiansReached = 33,
22    DeviceLimitReached = 34,
23    DeviceNotFound = 35,
24    RecoveryAlreadyActive = 36,
25    NonceMismatch = 37,
26    ActionNotAllowed = 38,
27    SessionBudgetExceeded = 39,
28    IntentExpired = 40,
29    InvalidIntent = 41,
30    SignerMismatch = 42,
31    SessionRevoked = 43,
32    SignerNotRegistered = 44,
33}