pub enum RuleSetError {
Show 41 variants
NumericalOverflow,
DataTypeMismatch,
DataSliceUnexpectedIndexError,
IncorrectOwner,
PayloadVecIndexError,
DerivedKeyInvalid,
PayerIsNotSigner,
NotImplemented,
BorshSerializationError,
BorshDeserializationError,
ValueOccupied,
DataIsEmpty,
MessagePackSerializationError,
MessagePackDeserializationError,
MissingAccount,
MissingPayloadValue,
RuleSetOwnerMismatch,
NameTooLong,
OperationNotFound,
RuleAuthorityIsNotSigner,
UnsupportedRuleSetRevMapVersion,
UnsupportedRuleSetVersion,
UnexpectedRuleSetFailure,
RuleSetRevisionNotAvailable,
AdditionalSignerCheckFailed,
PubkeyMatchCheckFailed,
PubkeyListMatchCheckFailed,
PubkeyTreeMatchCheckFailed,
PDAMatchCheckFailed,
ProgramOwnedCheckFailed,
ProgramOwnedListCheckFailed,
ProgramOwnedTreeCheckFailed,
AmountCheckFailed,
FrequencyCheckFailed,
IsWalletCheckFailed,
ProgramOwnedSetCheckFailed,
InvalidCompareOp,
InvalidConstraintType,
RuleSetReadFailed,
DuplicatedOperationName,
AlignmentError,
}
Expand description
The various errors that can be returned by the Rule Set program instructions.
Variants§
NumericalOverflow
0 - Numerical Overflow
DataTypeMismatch
1 - Data type mismatch
DataSliceUnexpectedIndexError
2 - Data slice unexpected index error
IncorrectOwner
3 - Incorrect account owner
PayloadVecIndexError
4 - PayloadVec Index error.
DerivedKeyInvalid
5 - Derived key invalid
PayerIsNotSigner
6 - Payer is not a signer
NotImplemented
7 - Feature is not implemented yet
BorshSerializationError
8 - Borsh serialization error
BorshDeserializationError
9 - Borsh deserialization error
ValueOccupied
10 - Value in Payload or RuleSet is occupied
DataIsEmpty
11 - Account data is empty
MessagePackSerializationError
12 - MessagePack serialization error
MessagePackDeserializationError
13 - MessagePack deserialization error
MissingAccount
14 - Missing account
MissingPayloadValue
15 - Missing Payload value
RuleSetOwnerMismatch
16 - RuleSet owner must be payer
NameTooLong
17 - Name too long
OperationNotFound
18 - The operation retrieved is not in the selected RuleSet
RuleAuthorityIsNotSigner
19 - Rule authority is not signer
UnsupportedRuleSetRevMapVersion
20 - Unsupported RuleSet header version
UnsupportedRuleSetVersion
21 - Unsupported RuleSet version
UnexpectedRuleSetFailure
22 - Unexpected RuleSet failure
RuleSetRevisionNotAvailable
23 - RuleSet revision not available
AdditionalSignerCheckFailed
24 - Additional Signer check failed
PubkeyMatchCheckFailed
25 - Pubkey Match check failed
PubkeyListMatchCheckFailed
26 - Pubkey List Match check failed
PubkeyTreeMatchCheckFailed
27 - Pubkey Tree Match check failed
PDAMatchCheckFailed
28 - PDA Match check failed
ProgramOwnedCheckFailed
29 - Program Owned check failed
ProgramOwnedListCheckFailed
30 - Program Owned List check failed
ProgramOwnedTreeCheckFailed
31 - Program Owned Tree check failed
AmountCheckFailed
32 - Amount checked failed
FrequencyCheckFailed
33 - Frequency check failed
IsWalletCheckFailed
34 - IsWallet check failed
ProgramOwnedSetCheckFailed
35 - Program Owned Set check failed
InvalidCompareOp
36 - Invalid compare operator
InvalidConstraintType
37 - Invalid constraint type value
RuleSetReadFailed
38 - Deserialization error
DuplicatedOperationName
39 - Duplicated operation name
AlignmentError
40 - Could not determine alignemnt
Trait Implementations§
Source§impl Clone for RuleSetError
impl Clone for RuleSetError
Source§fn clone(&self) -> RuleSetError
fn clone(&self) -> RuleSetError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RuleSetError
impl Debug for RuleSetError
Source§impl<T> DecodeError<T> for RuleSetError
impl<T> DecodeError<T> for RuleSetError
fn type_of() -> &'static str
fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
Source§impl Display for RuleSetError
impl Display for RuleSetError
Source§impl Error for RuleSetError
impl Error for RuleSetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<RuleSetError> for ProgramError
impl From<RuleSetError> for ProgramError
Source§fn from(e: RuleSetError) -> Self
fn from(e: RuleSetError) -> Self
Source§impl FromPrimitive for RuleSetError
impl FromPrimitive for RuleSetError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moreSource§impl PartialEq for RuleSetError
impl PartialEq for RuleSetError
Source§impl PrintProgramError for RuleSetError
impl PrintProgramError for RuleSetError
impl Eq for RuleSetError
impl StructuralPartialEq for RuleSetError
Auto Trait Implementations§
impl Freeze for RuleSetError
impl RefUnwindSafe for RuleSetError
impl Send for RuleSetError
impl Sync for RuleSetError
impl Unpin for RuleSetError
impl UnwindSafe for RuleSetError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more