release-test-client 0.1.5

release-test-client
Documentation
//! This code was AUTOGENERATED using the codama library.
//! Please DO NOT EDIT THIS FILE, instead use visitors
//! to add features, then rerun codama to update it.
//!
//! <https://github.com/codama-idl/codama>
//!

use num_derive::FromPrimitive;
use thiserror::Error;

#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
pub enum ReleaseTestProgramError {
    /// 60456 - No pending authority
    #[error("No pending authority")]
    NoPendingAuthority = 0xEC28,
}

impl solana_program::program_error::PrintProgramError for ReleaseTestProgramError {
    fn print<E>(&self) {
        solana_program::msg!(&self.to_string());
    }
}

impl<T> solana_program::decode_error::DecodeError<T> for ReleaseTestProgramError {
    fn type_of() -> &'static str {
        "ReleaseTestProgramError"
    }
}