cronos_network/
errors.rs

1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum CronosError {
5    #[msg("This account has already been initialized")]
6    AccountAlreadyInitialized,
7
8    #[msg("This instruction requires admin authority")]
9    AdminAuthorityInvalid,
10
11    #[msg("The provided node is cannot be used for this operation")]
12    InvalidNode,
13
14    #[msg("The provided snapshot entry cannot be used for this operation")]
15    InvalidSnapshotEntry,
16
17    #[msg("The stake account cannot be used for this operation")]
18    InvalidStakeAccount,
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 in progress")]
27    SnapshotNotInProgress,
28
29    #[msg("The snapshot is not current")]
30    SnapshotNotCurrent,
31
32    #[msg("The snapshot is incomplete")]
33    SnapshotIncomplete,
34}