clockwork_http/errors.rs
1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ClockworkError {
5 #[msg("This instruction requires admin authority")]
6 AdminAuthorityInvalid,
7
8 #[msg("You cannot claim more than the collectable balance")]
9 InvalidClaimAmount,
10
11 #[msg("Http method is not recognized")]
12 InvalidHttpMethod,
13
14 #[msg("Invalid number of workers")]
15 InvalidWorkers,
16}