uno_sdk/generated/errors/
uno.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 UnoError {
13    /// 6000 (0x1770) - User is not signer
14    #[error("User is not signer")]
15    UserIsNotSigner,
16    /// 6001 (0x1771) - Nonce account not initialized
17    #[error("Nonce account not initialized")]
18    NonceNotInitialized,
19    /// 6002 (0x1772) - Invalid nonce account
20    #[error("Invalid nonce account")]
21    InvalidNonceAccount,
22    /// 6003 (0x1773) - Nonce account is not writable
23    #[error("Nonce account is not writable")]
24    NonceNotWritable,
25    /// 6004 (0x1774) - Math overflow
26    #[error("Math overflow")]
27    MathOverflow,
28    /// 6005 (0x1775) - Invalid argument
29    #[error("Invalid argument")]
30    InvalidArgument,
31    /// 6006 (0x1776) - Invalid system program id
32    #[error("Invalid system program id")]
33    InvalidSystemProgramId,
34    /// 6007 (0x1777) - Nonce account already exists
35    #[error("Nonce account already exists")]
36    NonceAccountAlreadyExists,
37}
38
39impl solana_program::program_error::PrintProgramError for UnoError {
40    fn print<E>(&self) {
41        solana_program::msg!(&self.to_string());
42    }
43}