nifty_bridge/generated/errors/
bridge.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/metaplex-foundation/kinobi]
6//!
7
8use num_derive::FromPrimitive;
9use thiserror::Error;
10
11#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
12pub enum BridgeError {
13    /// 0 (0x0) - Invalid mint account
14    #[error("Invalid mint account")]
15    InvalidMint,
16    /// 1 (0x1) - Invalid authority account
17    #[error("Invalid authority account")]
18    InvalidAuthority,
19}
20
21impl solana_program::program_error::PrintProgramError for BridgeError {
22    fn print<E>(&self) {
23        solana_program::msg!(&self.to_string());
24    }
25}