pub enum RpcCustomError {
Show 16 variants
BlockCleanedUp {
slot: Slot,
first_available_block: Slot,
},
SendTransactionPreflightFailure {
message: String,
result: RpcSimulateTransactionResult,
},
TransactionSignatureVerificationFailure,
BlockNotAvailable {
slot: Slot,
},
NodeUnhealthy {
num_slots_behind: Option<Slot>,
},
TransactionPrecompileVerificationFailure(TransactionError),
SlotSkipped {
slot: Slot,
},
NoSnapshot,
LongTermStorageSlotSkipped {
slot: Slot,
},
KeyExcludedFromSecondaryIndex {
index_key: String,
},
TransactionHistoryNotAvailable,
ScanError {
message: String,
},
TransactionSignatureLenMismatch,
BlockStatusNotAvailableYet {
slot: Slot,
},
UnsupportedTransactionVersion(u8),
MinContextSlotNotReached {
context_slot: Slot,
},
}
Variants§
BlockCleanedUp
SendTransactionPreflightFailure
TransactionSignatureVerificationFailure
BlockNotAvailable
Fields
§
slot: Slot
NodeUnhealthy
TransactionPrecompileVerificationFailure(TransactionError)
SlotSkipped
Fields
§
slot: Slot
NoSnapshot
LongTermStorageSlotSkipped
Fields
§
slot: Slot
KeyExcludedFromSecondaryIndex
TransactionHistoryNotAvailable
ScanError
TransactionSignatureLenMismatch
BlockStatusNotAvailableYet
Fields
§
slot: Slot
UnsupportedTransactionVersion(u8)
MinContextSlotNotReached
Fields
§
context_slot: Slot
Trait Implementations§
source§impl Debug for RpcCustomError
impl Debug for RpcCustomError
source§impl Display for RpcCustomError
impl Display for RpcCustomError
source§impl Error for RpcCustomError
impl Error for RpcCustomError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<EncodeError> for RpcCustomError
impl From<EncodeError> for RpcCustomError
source§fn from(err: EncodeError) -> Self
fn from(err: EncodeError) -> Self
Converts to this type from the input type.
source§impl From<RpcCustomError> for Error
impl From<RpcCustomError> for Error
source§fn from(e: RpcCustomError) -> Self
fn from(e: RpcCustomError) -> Self
Converts to this type from the input type.