solana_feature_gate_client/generated/errors/
solana_feature_gate.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! 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, thiserror::Error};

#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
pub enum SolanaFeatureGateError {
    /// 0 - Feature already activated
    #[error("Feature already activated")]
    FeatureAlreadyActivated = 0x0,
}

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

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