clockwork_scheduler/
errors.rs

1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ClockworkError {
5    #[msg("An task's inner ix failed to execute")]
6    InnerIxFailed,
7
8    #[msg("The queue does not have enough lamports for this operation")]
9    InsufficientQueueBalance,
10
11    #[msg("The queue is current executing another task")]
12    InvalidTask,
13    #[msg("The dynamic account list is not the expect size")]
14    InvalidDynamicAccounts,
15    #[msg("The task response value could not be parsed")]
16    InvalidTaskResponse,
17    #[msg("The return data is intended for another program")]
18    InvalidReturnData,
19    #[msg("The cron expression is invalid")]
20    InvalidSchedule,
21    #[msg("Your queue cannot sign for all required signatures for this instruction")]
22    InvalidSignatory,
23    #[msg("The queue does not have the right status for this operation")]
24    InvalidQueueStatus,
25
26    #[msg("Your are not the admin authority")]
27    NotAdmin,
28    #[msg("You are not the authority of this queue")]
29    NotQueueAuthority,
30
31    #[msg("The queue is not due")]
32    QueueNotDue,
33
34    #[msg("Worker addresses cannot be initialized accounts")]
35    WorkerDataNotEmpty,
36}