cronos_scheduler/
errors.rs1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum CronosError {
5 #[msg("Delegate addresses cannot be initialized accounts")]
6 DelegateDataNotEmpty,
7
8 #[msg("An task's inner ix failed to execute")]
9 InnerIxFailed,
10 #[msg("An inner instructure wants to mutate state owned by the scheduler")]
11 InnerIxReentrancy,
12
13 #[msg("The queue is current executing another task")]
14 InvalidTask,
15 #[msg("The dynamic account list is not the expect size")]
16 InvalidDynamicAccounts,
17 #[msg("The exec response value could not be parsed")]
18 InvalidExecResponse,
19 #[msg("The return data is intended for another program")]
20 InvalidReturnData,
21 #[msg("The cron expression is invalid")]
22 InvalidSchedule,
23 #[msg("Your manager cannot provide all required signatures for this instruction")]
24 InvalidSignatory,
25 #[msg("The queue does not have the right status for this operation")]
26 InvalidQueueStatus,
27
28 #[msg("Your are not the admin authority")]
29 NotAdmin,
30 #[msg("You are not the owner of this manager")]
31 NotManagerOwner,
32
33 #[msg("The queue is not due")]
34 QueueNotDue,
35}