firelaunch_io_firelaunch_client/generated/errors/
firelaunch.rs

1//! This code was AUTOGENERATED using the kinobi library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun kinobi to update it.
4//!
5//! <https://github.com/kinobi-so/kinobi>
6//!
7
8use num_derive::FromPrimitive;
9use thiserror::Error;
10
11#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
12pub enum FirelaunchError {
13    /// 6000 - Numeric Overflow
14    #[error("Numeric Overflow")]
15    NumericOverflow = 0x1770,
16    /// 6001 - Invalid PDA
17    #[error("Invalid PDA")]
18    InvalidPda = 0x1771,
19    /// 6002 - Invalid Curve Type
20    #[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}