1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anchor_lang::prelude::*;
#[error]
pub enum ErrorCode {
#[msg("Your daemon cannot provide all required signatures for this instruction")]
InvalidSignatory,
#[msg("The provided timestamp is not a valid frame")]
InvalidTimestamp,
#[msg("Task is not pending and may not executed")]
TaskNotPending,
#[msg("This task is not marked for repeat")]
TaskNotRepeatable,
#[msg("This task is not due and may not be executed yet")]
TaskNotDue,
#[msg("Unknown error")]
Unknown,
}