#[repr(u32)]pub enum SolMailError {
Show 15 variants
InvalidInstructionData = 0,
MissingRequiredSignature = 1,
InvalidPda = 2,
UnauthorizedOracle = 3,
AlreadyDelivered = 4,
TimeoutNotReached = 5,
InsufficientFunds = 6,
AmountBelowMinimum = 7,
InvalidMint = 8,
AccountNotWritable = 9,
InvalidAccountOwner = 10,
Overflow = 11,
EscrowNotFound = 12,
CreditsNotFound = 13,
InvalidPayer = 14,
}Expand description
Custom error codes for SolMail program
Variants§
InvalidInstructionData = 0
Invalid instruction data
MissingRequiredSignature = 1
Missing required signature
InvalidPda = 2
Invalid PDA derivation
Unauthorized oracle
AlreadyDelivered = 4
Escrow already delivered
TimeoutNotReached = 5
Timeout not reached for refund
InsufficientFunds = 6
Insufficient funds
AmountBelowMinimum = 7
Amount below minimum
InvalidMint = 8
Invalid token mint
AccountNotWritable = 9
Account not writable
InvalidAccountOwner = 10
Invalid account owner
Overflow = 11
Arithmetic overflow
EscrowNotFound = 12
Escrow not found
CreditsNotFound = 13
Credits account not found
InvalidPayer = 14
Invalid payer
Trait Implementations§
Source§impl Clone for SolMailError
impl Clone for SolMailError
Source§fn clone(&self) -> SolMailError
fn clone(&self) -> SolMailError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SolMailError
impl Debug for SolMailError
Source§impl From<SolMailError> for ProgramError
impl From<SolMailError> for ProgramError
Source§fn from(e: SolMailError) -> Self
fn from(e: SolMailError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SolMailError
impl PartialEq for SolMailError
impl Copy for SolMailError
impl Eq for SolMailError
impl StructuralPartialEq for SolMailError
Auto Trait Implementations§
impl Freeze for SolMailError
impl RefUnwindSafe for SolMailError
impl Send for SolMailError
impl Sync for SolMailError
impl Unpin for SolMailError
impl UnsafeUnpin for SolMailError
impl UnwindSafe for SolMailError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more