use anchor_lang::prelude::*;
#[error_code]
pub enum ClockworkError {
#[msg("This trigger requires a data hash observation")]
DataHashNotPresent,
#[msg("The crank response could not be parsed")]
InvalidCrankResponse,
#[msg("The queue is in an invalid state")]
InvalidQueueState,
#[msg("The range is larger than the account size")]
RangeOutOfBounds,
#[msg("The trigger condition has not been activated")]
TriggerNotActive,
#[msg("This operation cannot be processes because the queue is currently busy")]
QueueBusy,
#[msg("The queue is currently paused")]
QueuePaused,
#[msg("The queue's rate limit has been reached")]
RateLimitExeceeded,
#[msg("Queue rate limits cannot exceed the maximum allowed value")]
MaxRateLimitExceeded,
#[msg("Inner instruction attempted to write to an unauthorized address")]
UnauthorizedWrite,
}