Enum kaspa_rpc_core::error::RpcError
source · pub enum RpcError {
Show 34 variants
NotImplemented,
IntConversionError(TryFromIntError),
HexParsingError(Error),
RpcBlueWorkTypeParseError(ParseIntError),
ParseIntError(ParseIntError),
ParseIpAddressError(AddrParseError),
RpcApiVersionFormatError,
InvalidRpcScriptClass(String),
MissingRpcFieldError(String, String),
UnsupportedFeature,
PrimitiveToEnumConversionError,
CoinbasePayloadLengthAboveMax(usize),
RejectedTransaction(RpcTransactionId, String),
InvalidBlock(RpcHash),
InvalidGetBlocksRequest,
TransactionNotFound(TransactionId),
NoUtxoIndex,
NoConnectionManager,
WindowSizeExceedingMaximum(u32, u32),
WindowSizeExceedingPruningDepth(u32, u64),
UnavailableInSafeMode,
IpHasPermanentConnection(IpAddress),
IpIsNotBanned(IpAddress),
AddressError(AddressError),
NetworkTypeError(NetworkTypeError),
NetworkIdError(NetworkIdError),
NotificationError(Error),
MiningManagerError(MiningManagerError),
ConsensusError(ConsensusError),
ScriptClassError(Error),
NodeIdError(Error),
RpcSubsystem(String),
General(String),
RpcCtlDispatchError,
}Variants§
NotImplemented
IntConversionError(TryFromIntError)
HexParsingError(Error)
RpcBlueWorkTypeParseError(ParseIntError)
ParseIntError(ParseIntError)
ParseIpAddressError(AddrParseError)
RpcApiVersionFormatError
InvalidRpcScriptClass(String)
MissingRpcFieldError(String, String)
UnsupportedFeature
PrimitiveToEnumConversionError
CoinbasePayloadLengthAboveMax(usize)
RejectedTransaction(RpcTransactionId, String)
InvalidBlock(RpcHash)
InvalidGetBlocksRequest
TransactionNotFound(TransactionId)
NoUtxoIndex
NoConnectionManager
WindowSizeExceedingMaximum(u32, u32)
WindowSizeExceedingPruningDepth(u32, u64)
IpHasPermanentConnection(IpAddress)
IpIsNotBanned(IpAddress)
AddressError(AddressError)
NetworkTypeError(NetworkTypeError)
NetworkIdError(NetworkIdError)
NotificationError(Error)
MiningManagerError(MiningManagerError)
ConsensusError(ConsensusError)
ScriptClassError(Error)
NodeIdError(Error)
RpcSubsystem(String)
General(String)
RpcCtlDispatchError
Trait Implementations§
source§impl Error for RpcError
impl Error for RpcError
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<AddrParseError> for RpcError
impl From<AddrParseError> for RpcError
source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
source§impl From<AddressError> for RpcError
impl From<AddressError> for RpcError
source§fn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
source§impl From<ChannelError<RpcState>> for RpcError
impl From<ChannelError<RpcState>> for RpcError
source§fn from(_: ChannelError<RpcState>) -> Self
fn from(_: ChannelError<RpcState>) -> Self
Converts to this type from the input type.
source§impl From<ConsensusError> for RpcError
impl From<ConsensusError> for RpcError
source§fn from(source: ConsensusError) -> Self
fn from(source: ConsensusError) -> Self
Converts to this type from the input type.
source§impl From<MiningManagerError> for RpcError
impl From<MiningManagerError> for RpcError
source§fn from(source: MiningManagerError) -> Self
fn from(source: MiningManagerError) -> Self
Converts to this type from the input type.
source§impl From<NetworkIdError> for RpcError
impl From<NetworkIdError> for RpcError
source§fn from(source: NetworkIdError) -> Self
fn from(source: NetworkIdError) -> Self
Converts to this type from the input type.
source§impl From<NetworkTypeError> for RpcError
impl From<NetworkTypeError> for RpcError
source§fn from(source: NetworkTypeError) -> Self
fn from(source: NetworkTypeError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for RpcError
impl From<ParseIntError> for RpcError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for RpcError
impl From<TryFromIntError> for RpcError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RpcError
impl Send for RpcError
impl Sync for RpcError
impl Unpin for RpcError
impl UnwindSafe for RpcError
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
§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.