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
31
32
33
34
35
36
37
38
39
40
41
42
use anchor_lang::prelude::*;
#[error_code]
pub enum ClockworkError {
#[msg("The exec response could not be parsed")]
InvalidThreadResponse,
#[msg("The thread is in an invalid state")]
InvalidThreadState,
#[msg("The trigger condition has not been activated")]
TriggerNotActive,
#[msg("This operation cannot be processes because the thread is currently busy")]
ThreadBusy,
#[msg("The thread is currently paused")]
ThreadPaused,
#[msg("The thread's rate limit has been reached")]
RateLimitExeceeded,
#[msg("Thread rate limits cannot exceed the maximum allowed value")]
MaxRateLimitExceeded,
#[msg("Inner instruction attempted to write to an unauthorized address")]
UnauthorizedWrite,
#[msg("Withdrawing this amount would leave the thread with less than the minimum required SOL for rent exemption")]
WithdrawalTooLarge,
}