firelaunch_io_firelaunch_client/generated/errors/
firelaunch.rs1use num_derive::FromPrimitive;
9use thiserror::Error;
10
11#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
12pub enum FirelaunchError {
13 #[error("Numeric Overflow")]
15 NumericOverflow = 0x1770,
16 #[error("Invalid PDA")]
18 InvalidPda = 0x1771,
19 #[error("Invalid Curve Type")]
21 InvalidCurveType = 0x1772,
22}
23
24impl solana_program::program_error::PrintProgramError for FirelaunchError {
25 fn print<E>(&self) {
26 solana_program::msg!(&self.to_string());
27 }
28}