solana_feature_gate_client/generated/errors/
solana_feature_gate.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
7use {num_derive::FromPrimitive, thiserror::Error};
8
9#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
10pub enum SolanaFeatureGateError {
11    /// 0 - Feature already activated
12    #[error("Feature already activated")]
13    FeatureAlreadyActivated = 0x0,
14}
15
16impl solana_program::program_error::PrintProgramError for SolanaFeatureGateError {
17    fn print<E>(&self) {
18        solana_program::msg!(&self.to_string());
19    }
20}
21
22impl<T> solana_program::decode_error::DecodeError<T> for SolanaFeatureGateError {
23    fn type_of() -> &'static str {
24        "SolanaFeatureGateError"
25    }
26}