#[repr(u32)]
pub enum ClockworkError {
DataHashNotPresent,
InvalidCrankResponse,
InvalidThreadState,
RangeOutOfBounds,
TriggerNotActive,
ThreadBusy,
ThreadPaused,
RateLimitExeceeded,
MaxRateLimitExceeded,
UnauthorizedWrite,
}Expand description
Errors for the the Clockwork thread program.
Variants
DataHashNotPresent
Thrown if a crank instruction requires a data_hash argument and one was not provided by the worker.
InvalidCrankResponse
Thrown if a crank response has an invalid program ID or cannot be parsed.
InvalidThreadState
Thrown if a thread has an invalid state and cannot complete the operation.
RangeOutOfBounds
Thrown if an account trigger has an invalid range.
TriggerNotActive
Thrown if a crank instruction is invalid because the thread’s trigger condition has not been met.
ThreadBusy
ThreadPaused
Thrown if a request is invalid because the thread is currently paused.
RateLimitExeceeded
Thrown if a crank instruction would cause a thread to exceed its rate limit.
MaxRateLimitExceeded
Thrown if a thread authority attempts to set a rate limit above the maximum allowed value.
UnauthorizedWrite
Thrown if an inner instruction attempted to write to an unauthorized address.
Implementations
sourceimpl ClockworkError
impl ClockworkError
Trait Implementations
sourceimpl Clone for ClockworkError
impl Clone for ClockworkError
sourcefn clone(&self) -> ClockworkError
fn clone(&self) -> ClockworkError
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more