Skip to main content

release_test_client/generated/errors/
release_test_program.rs

1//! This code was AUTOGENERATED using the codama library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun codama to update it.
4//!
5//! <https://github.com/codama-idl/codama>
6//!
7
8use num_derive::FromPrimitive;
9use thiserror::Error;
10
11#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
12pub enum ReleaseTestProgramError {
13    /// 60456 - No pending authority
14    #[error("No pending authority")]
15    NoPendingAuthority = 0xEC28,
16}
17
18impl solana_program::program_error::PrintProgramError for ReleaseTestProgramError {
19    fn print<E>(&self) {
20        solana_program::msg!(&self.to_string());
21    }
22}
23
24impl<T> solana_program::decode_error::DecodeError<T> for ReleaseTestProgramError {
25    fn type_of() -> &'static str {
26        "ReleaseTestProgramError"
27    }
28}