clockwork_network/
errors.rs1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum ClockworkError {
5 #[msg("This account has already been initialized")]
6 AccountAlreadyInitialized,
7
8 #[msg("The provided node is cannot be used for this operation")]
9 InvalidNode,
10
11 #[msg("The provided snapshot entry cannot be used for this operation")]
12 InvalidSnapshotEntry,
13
14 #[msg("The stake account cannot be used for this operation")]
15 InvalidStakeAccount,
16
17 #[msg("One of the provided pool accounts is invalid or missing")]
18 InvalidPool,
19
20 #[msg("The registry is locked and may not be updated right now")]
21 RegistryLocked,
22
23 #[msg("The registry must be locked for this operation")]
24 RegistryMustBeLocked,
25
26 #[msg("The snapshot is not archived")]
27 SnapshotNotArchived,
28
29 #[msg("The snapshot is not in progress")]
30 SnapshotNotInProgress,
31
32 #[msg("The snapshot is not current")]
33 SnapshotNotCurrent,
34
35 #[msg("The snapshot is incomplete")]
36 SnapshotIncomplete,
37}