bolt_lang/errors.rs
1use anchor_lang::prelude::*;
2
3#[error_code]
4pub enum BoltError {
5 /// Returned if the wrong authority attempts to sign for an instruction
6 #[msg("Invalid authority for instruction")]
7 InvalidAuthority,
8 /// Returned if the wrong authority attempts to sign for an instruction
9 #[msg("Invalid caller: must be called from a CPI instruction")]
10 InvalidCaller,
11}