Enum solana_sdk::program_error::ProgramError [−][src]
pub enum ProgramError { Custom(u32), InvalidArgument, InvalidInstructionData, InvalidAccountData, AccountDataTooSmall, InsufficientFunds, IncorrectProgramId, MissingRequiredSignature, AccountAlreadyInitialized, UninitializedAccount, NotEnoughAccountKeys, AccountBorrowFailed, MaxSeedLengthExceeded, InvalidSeeds, BorshIoError(String), AccountNotRentExempt, }
Reasons the program may fail
Variants
Custom(u32)
Allows on-chain programs to implement program-specific error types and see them returned by the Solana runtime. A program-specific error may be any type that is represented as or serialized to a u32 integer.
BorshIoError(String)
Trait Implementations
impl Clone for ProgramError
[src][+]
impl Debug for ProgramError
[src][+]
impl<'de> Deserialize<'de> for ProgramError
[src][+]
impl Display for ProgramError
[src][+]
impl Eq for ProgramError
[src]
impl Error for ProgramError
[src][+]
impl From<Error> for ProgramError
[src][+]
impl From<PubkeyError> for ProgramError
[src][+]
impl From<u64> for ProgramError
[src][+]
impl PartialEq<ProgramError> for ProgramError
[src][+]
impl PrintProgramError for ProgramError
[src][+]
impl Serialize for ProgramError
[src][+]
impl StructuralEq for ProgramError
[src]
impl StructuralPartialEq for ProgramError
[src]
impl TryFrom<InstructionError> for ProgramError
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for ProgramError
impl Send for ProgramError
impl Sync for ProgramError
impl Unpin for ProgramError
impl UnwindSafe for ProgramError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error,
[src][+]
T: 'static + Error,
impl<T> AsFail for T where
T: Fail,
[src][+]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src][+]
E: 'static + Error + Send + Sync,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
[+]
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,