pub enum JsonRpcErrorConversionError {
UnknownCode,
MissingData,
DataParsingFailure,
}Expand description
Failures trying to parse a JsonRpcError into StarknetError.
StarknetError is the standard, provider-agnostic error type that all Provider
implementations should strive to return in an error case, in a best-effort basis. This allows
for unified error handling logic.
However, not all error cases can be properly converted, and this error type represents the cases when such failure happens.
Variants§
UnknownCode
The error code is outside of the range specified by the specification.
MissingData
Error data is expected but missing.
DataParsingFailure
Error data is malformed.
Trait Implementations§
Source§impl Debug for JsonRpcErrorConversionError
impl Debug for JsonRpcErrorConversionError
Source§impl Error for JsonRpcErrorConversionError
impl Error for JsonRpcErrorConversionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for JsonRpcErrorConversionError
impl RefUnwindSafe for JsonRpcErrorConversionError
impl Send for JsonRpcErrorConversionError
impl Sync for JsonRpcErrorConversionError
impl Unpin for JsonRpcErrorConversionError
impl UnwindSafe for JsonRpcErrorConversionError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.