tensor_escrow/generated/errors/
tensor_escrow.rs1use num_derive::FromPrimitive;
9use thiserror::Error;
10
11#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
12pub enum TensorEscrowError {
13 #[error("bad owner")]
15 BadOwner = 0x1780,
16 #[error("bad margin account passed")]
18 BadMargin = 0x178B,
19 #[error("margin account has pools open and is in use")]
21 MarginInUse = 0x1790,
22}
23
24impl solana_program::program_error::PrintProgramError for TensorEscrowError {
25 fn print<E>(&self) {
26 solana_program::msg!(&self.to_string());
27 }
28}