stellar_interchain_token/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use soroban_sdk::contracterror;

#[contracterror]
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
#[repr(u32)]
pub enum ContractError {
    MigrationNotAllowed = 1,
    NotMinter = 2,
    InvalidDecimal = 3,
    InvalidTokenName = 4,
    InvalidTokenSymbol = 5,
    InvalidAmount = 6,
    InvalidExpirationLedger = 7,
    InsufficientAllowance = 8,
    InsufficientBalance = 9,
}