sablier_thread_program/
errors.rs1use anchor_lang::prelude::*;
4
5#[error_code]
7pub enum SablierError {
8 #[msg("The exec response could not be parsed")]
10 InvalidThreadResponse,
11
12 #[msg("The thread is in an invalid state")]
14 InvalidThreadState,
15
16 #[msg("The trigger variant cannot be changed")]
18 InvalidTriggerVariant,
19
20 #[msg("The trigger condition has not been activated")]
22 TriggerConditionFailed,
23
24 #[msg("This operation cannot be processes because the thread is currently busy")]
25 ThreadBusy,
26
27 #[msg("The thread is currently paused")]
29 ThreadPaused,
30
31 #[msg("The thread's rate limit has been reached")]
33 RateLimitExeceeded,
34
35 #[msg("Thread rate limits cannot exceed the maximum allowed value")]
37 MaxRateLimitExceeded,
38
39 #[msg("Inner instruction attempted to write to an unauthorized address")]
41 UnauthorizedWrite,
42
43 #[msg("Withdrawing this amount would leave the thread with less than the minimum required SOL for rent exemption")]
45 WithdrawalTooLarge,
46
47 #[msg("The provided authority does not match the thread's authority")]
49 InvalidThreadAuthority,
50
51 #[msg("The provided thread account is not a valid Thread account")]
53 InvalidThreadAccount,
54}