pub enum WavebreakError {
Show 21 variants
InvalidAccountRole = 6_000,
IncorrectAccountAddress = 6_001,
PermissionActive = 6_002,
PermissionExpired = 6_003,
PermissionInvalidSignature = 6_004,
AuthorityNotAllowed = 6_005,
SubjectMismatch = 6_006,
InstructionNotImplemented = 6_007,
ConsumerProgramNotAllowed = 6_008,
ArithmeticError = 6_009,
MathLibError = 6_010,
SlippageExceeded = 6_011,
PriceError = 6_012,
GraduationConditionsNotMet = 6_013,
WhirlpoolAlreadyExists = 6_014,
IncorrectGraduationInstruction = 6_015,
InvalidGraduationTarget = 6_016,
AmountAboveMaxAmount = 6_017,
MissingPermissionConsumeInstruction = 6_018,
BondingCurveCompleted = 6_019,
InvalidPriceCurve = 6_020,
}Variants§
InvalidAccountRole = 6_000
6000 - Invalid account role
IncorrectAccountAddress = 6_001
6001 - Incorrect account address
PermissionActive = 6_002
6002 - Permission still active
PermissionExpired = 6_003
6003 - Permission expired
PermissionInvalidSignature = 6_004
6004 - Permission invalid signature
AuthorityNotAllowed = 6_005
6005 - Authority not allowed
SubjectMismatch = 6_006
6006 - Subject mismatch
InstructionNotImplemented = 6_007
6007 - Instruction not implemented
ConsumerProgramNotAllowed = 6_008
6008 - Consumer program not allowed
ArithmeticError = 6_009
6009 - Arithmetic error
MathLibError = 6_010
6010 - Error from math library
SlippageExceeded = 6_011
6011 - Slippage exceeded
PriceError = 6_012
6012 - Error calculating token price
GraduationConditionsNotMet = 6_013
6013 - Token has not met graduation conditions
WhirlpoolAlreadyExists = 6_014
6014 - Whirlpool already exists
IncorrectGraduationInstruction = 6_015
6015 - Incorrect graduation instruction
InvalidGraduationTarget = 6_016
6016 - Invalid graduation target
AmountAboveMaxAmount = 6_017
6017 - Amount above max amount
MissingPermissionConsumeInstruction = 6_018
6018 - Missing permission consume instruction
BondingCurveCompleted = 6_019
6019 - Bonding curve has completed and is ready to be graduated
InvalidPriceCurve = 6_020
6020 - Invalid price curve
Trait Implementations§
Source§impl Clone for WavebreakError
impl Clone for WavebreakError
Source§fn clone(&self) -> WavebreakError
fn clone(&self) -> WavebreakError
Returns a copy of the value. Read more
1.0.0 · 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 WavebreakError
impl Debug for WavebreakError
Source§impl<T> DecodeError<T> for WavebreakError
impl<T> DecodeError<T> for WavebreakError
fn type_of() -> &'static str
fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
Source§impl Display for WavebreakError
impl Display for WavebreakError
Source§impl Error for WavebreakError
impl Error for WavebreakError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl FromPrimitive for WavebreakError
impl FromPrimitive for WavebreakError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for WavebreakError
impl PartialEq for WavebreakError
Source§impl PrintProgramError for WavebreakError
impl PrintProgramError for WavebreakError
impl Eq for WavebreakError
impl StructuralPartialEq for WavebreakError
Auto Trait Implementations§
impl Freeze for WavebreakError
impl RefUnwindSafe for WavebreakError
impl Send for WavebreakError
impl Sync for WavebreakError
impl Unpin for WavebreakError
impl UnwindSafe for WavebreakError
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