1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use anchor_lang::prelude::*;
#[error_code]
pub enum CronosError {
#[msg("Tasks cannot be started before they are stopped")]
InvalidChronology,
#[msg("Tasks cannot be scheduled for execution in the past")]
InvalidExecAtStale,
#[msg("Recurrence interval cannot be negative")]
InvalidRecurrNegative,
#[msg("Recurrence interval is below the minimum supported time granulartiy")]
InvalidRecurrBelowMin,
#[msg("Your daemon cannot provide all required signatures for this instruction")]
InvalidSignatory,
#[msg("This instruction requires admin authority")]
NotAuthorizedAdmin,
#[msg("You are not the owner of this daemon")]
NotAuthorizedDaemonOwner,
#[msg("Task is not queued and may not executed")]
TaskNotQueued,
#[msg("This task is not due and may not be executed yet")]
TaskNotDue,
#[msg("The task instruction invocation failed")]
TaskFailed,
#[msg("Unknown error")]
Unknown,
}