#[repr(u16)]pub enum ControllerErrorCode {
Show 17 variants
SenderNotWhitelisted = 1_000,
RecipientNotWhitelisted = 1_001,
SenderInLockup = 1_002,
TradingWindowClosed = 1_003,
TransferAmountExceedsLimit = 1_004,
InsufficientBalance = 1_005,
ExceedsAuthorizedCap = 1_100,
UnauthorizedMinter = 1_101,
InvalidIssuanceRef = 1_102,
UnauthorizedBurner = 1_200,
InvalidBurnReason = 1_201,
InvalidCorporateAction = 1_300,
InsufficientApprovals = 1_301,
ActionNotAuthorized = 1_302,
PolicyCheckFailed = 9_000,
ControllerPaused = 9_001,
Unknown = 9_999,
}Expand description
Controller error codes
Variants§
SenderNotWhitelisted = 1_000
RecipientNotWhitelisted = 1_001
SenderInLockup = 1_002
TradingWindowClosed = 1_003
TransferAmountExceedsLimit = 1_004
InsufficientBalance = 1_005
ExceedsAuthorizedCap = 1_100
InvalidIssuanceRef = 1_102
InvalidBurnReason = 1_201
InvalidCorporateAction = 1_300
InsufficientApprovals = 1_301
ActionNotAuthorized = 1_302
PolicyCheckFailed = 9_000
ControllerPaused = 9_001
Unknown = 9_999
Trait Implementations§
Source§impl Clone for ControllerErrorCode
impl Clone for ControllerErrorCode
Source§fn clone(&self) -> ControllerErrorCode
fn clone(&self) -> ControllerErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControllerErrorCode
impl Debug for ControllerErrorCode
Source§impl<'de> Deserialize<'de> for ControllerErrorCode
impl<'de> Deserialize<'de> for ControllerErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ControllerErrorCode
impl Hash for ControllerErrorCode
Source§impl PartialEq for ControllerErrorCode
impl PartialEq for ControllerErrorCode
Source§fn eq(&self, other: &ControllerErrorCode) -> bool
fn eq(&self, other: &ControllerErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControllerErrorCode
impl Serialize for ControllerErrorCode
impl Copy for ControllerErrorCode
impl Eq for ControllerErrorCode
impl StructuralPartialEq for ControllerErrorCode
Auto Trait Implementations§
impl Freeze for ControllerErrorCode
impl RefUnwindSafe for ControllerErrorCode
impl Send for ControllerErrorCode
impl Sync for ControllerErrorCode
impl Unpin for ControllerErrorCode
impl UnsafeUnpin for ControllerErrorCode
impl UnwindSafe for ControllerErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more