solana_zk_token_sdk/instruction/errors.rs
1#[cfg(not(target_os = "solana"))]
2use thiserror::Error;
3
4#[derive(Error, Clone, Debug, Eq, PartialEq)]
5#[cfg(not(target_os = "solana"))]
6pub enum InstructionError {
7 #[error("decryption error")]
8 Decryption,
9 #[error("missing ciphertext")]
10 MissingCiphertext,
11 #[error("illegal amount bit length")]
12 IllegalAmountBitLength,
13 #[error("arithmetic overflow")]
14 Overflow,
15}