Skip to main content

antegen_fiber_program/
errors.rs

1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum AntegenFiberError {
5    #[msg("Invalid compiled instruction data")]
6    InvalidCompiledInstruction,
7
8    #[msg("Fiber account is already initialized")]
9    AlreadyInitialized,
10
11    #[msg("Derived PDA does not match the provided fiber account")]
12    InvalidFiberPDA,
13
14    #[msg("Fiber account has insufficient lamports for rent")]
15    InsufficientRent,
16
17    #[msg("Lookup tables list exceeds maximum of 4 entries")]
18    LookupTablesExceedMax,
19
20    #[msg("Lookup tables are not supported on legacy fibers — close and recreate")]
21    LegacyFiberLookupTablesUnsupported,
22
23    #[msg("Fiber account data is malformed or has unknown discriminator")]
24    InvalidFiberData,
25}