Skip to main content

cougr_core/standards/
error.rs

1use soroban_sdk::contracterror;
2
3/// Errors returned by the reusable standards layer.
4#[contracterror]
5#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
6#[repr(u32)]
7pub enum StandardsError {
8    Unauthorized = 60,
9    AlreadyInitialized = 61,
10    OwnerNotSet = 62,
11    PendingOwnerNotSet = 63,
12    PendingOwnerMismatch = 64,
13    RoleAlreadyGranted = 65,
14    RoleNotGranted = 66,
15    MissingRoleAdmin = 67,
16    Paused = 68,
17    NotPaused = 69,
18    ExecutionLocked = 70,
19    RecoveryActive = 71,
20    RecoveryInactive = 72,
21    BatchEmpty = 73,
22    BatchTooLarge = 74,
23    OperationNotReady = 75,
24    OperationExpired = 76,
25    OperationNotFound = 77,
26    OperationAlreadyExecuted = 78,
27    ExecutionNotLocked = 79,
28}