Skip to main content

ore_stake_api/
error.rs

1use steel::*;
2
3#[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)]
4#[repr(u32)]
5pub enum OreError {
6    #[error("Amount too small")]
7    AmountTooSmall = 0,
8
9    #[error("Not authorized")]
10    NotAuthorized = 1,
11
12    #[error("Invalid executor")]
13    InvalidExecutor = 2,
14}
15
16error!(OreError);