#[repr(u32)]pub enum AntegenThreadError {
Show 48 variants
InvalidThreadResponse = 0,
InvalidThreadState = 1,
InvalidTriggerVariant = 2,
InvalidNonceAccount = 3,
TriggerConditionFailed = 4,
ThreadBusy = 5,
ThreadPaused = 6,
RateLimitExeceeded = 7,
MaxRateLimitExceeded = 8,
UnauthorizedWrite = 9,
WithdrawalTooLarge = 10,
ThreadIdTooLong = 11,
InsufficientFunds = 12,
MathOverflow = 13,
ThreadHasNoNonceAccount = 14,
ThreadBeingObserved = 15,
ObserverNotClaimed = 16,
InvalidThreadAuthority = 17,
InvalidObserverAuthority = 18,
InvalidRegistryAdmin = 19,
InvalidInstruction = 20,
InvalidSignatory = 21,
MustBeCalledViaCPI = 22,
AlreadyClaimed = 23,
WrongFiberIndex = 24,
ObserverPriorityActive = 25,
TriggerNotReady = 26,
NonceRequired = 27,
InvalidObserverAccount = 28,
InvalidConfigAdmin = 29,
GlobalPauseActive = 30,
InvalidAuthority = 31,
InvalidFeePercentage = 32,
MissingFiberAccount = 33,
InvalidFiberIndex = 34,
ThreadHasFibers = 35,
ThreadHasNoFibersToExecute = 36,
InvalidExecIndex = 37,
NotLastExecutor = 38,
ErrorAlreadyReported = 39,
ThreadNotSufficientlyOverdue = 40,
PaymentFailed = 41,
FiberAccountRequired = 42,
InvalidFiberCursor = 43,
InvalidFiberAccount = 44,
MissingFiberAccounts = 45,
CloseNotSignaled = 46,
InvalidChainTarget = 47,
}Expand description
Errors for the the Antegen thread program.
Variants§
InvalidThreadResponse = 0
Thrown if a exec response has an invalid program ID or cannot be parsed.
InvalidThreadState = 1
Thrown if a thread has an invalid state and cannot complete the operation.
InvalidTriggerVariant = 2
The provided trigger variant is invalid.
InvalidNonceAccount = 3
The provided nonce account is invalid.
TriggerConditionFailed = 4
Thrown if a exec instruction is invalid because the thread’s trigger condition has not been met.
ThreadBusy = 5
ThreadPaused = 6
Thrown if a request is invalid because the thread is currently paused.
RateLimitExeceeded = 7
Thrown if a exec instruction would cause a thread to exceed its rate limit.
MaxRateLimitExceeded = 8
Thrown if a thread authority attempts to set a rate limit above the maximum allowed value.
Thrown if an inner instruction attempted to write to an unauthorized address.
WithdrawalTooLarge = 10
Thrown if the user attempts to withdraw SOL that would put a thread below it’s minimum rent threshold.
ThreadIdTooLong = 11
InsufficientFunds = 12
MathOverflow = 13
ThreadHasNoNonceAccount = 14
ThreadBeingObserved = 15
ObserverNotClaimed = 16
InvalidThreadAuthority = 17
InvalidObserverAuthority = 18
InvalidRegistryAdmin = 19
InvalidInstruction = 20
InvalidSignatory = 21
MustBeCalledViaCPI = 22
AlreadyClaimed = 23
WrongFiberIndex = 24
ObserverPriorityActive = 25
TriggerNotReady = 26
NonceRequired = 27
InvalidObserverAccount = 28
InvalidConfigAdmin = 29
GlobalPauseActive = 30
InvalidAuthority = 31
InvalidFeePercentage = 32
MissingFiberAccount = 33
InvalidFiberIndex = 34
ThreadHasFibers = 35
ThreadHasNoFibersToExecute = 36
InvalidExecIndex = 37
NotLastExecutor = 38
ErrorAlreadyReported = 39
ThreadNotSufficientlyOverdue = 40
PaymentFailed = 41
FiberAccountRequired = 42
InvalidFiberCursor = 43
InvalidFiberAccount = 44
MissingFiberAccounts = 45
CloseNotSignaled = 46
InvalidChainTarget = 47
Implementations§
Trait Implementations§
Source§impl Clone for AntegenThreadError
impl Clone for AntegenThreadError
Source§fn clone(&self) -> AntegenThreadError
fn clone(&self) -> AntegenThreadError
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AntegenThreadError
impl Debug for AntegenThreadError
Source§impl Display for AntegenThreadError
impl Display for AntegenThreadError
Source§impl From<AntegenThreadError> for Error
impl From<AntegenThreadError> for Error
Source§fn from(error_code: AntegenThreadError) -> Error
fn from(error_code: AntegenThreadError) -> Error
Source§impl From<AntegenThreadError> for u32
impl From<AntegenThreadError> for u32
Source§fn from(e: AntegenThreadError) -> u32
fn from(e: AntegenThreadError) -> u32
impl Copy for AntegenThreadError
Auto Trait Implementations§
impl Freeze for AntegenThreadError
impl RefUnwindSafe for AntegenThreadError
impl Send for AntegenThreadError
impl Sync for AntegenThreadError
impl Unpin for AntegenThreadError
impl UnwindSafe for AntegenThreadError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)