pub enum CliError {
WalletError(XRPLWalletException),
ClientError(XRPLClientException),
UrlParseError(ParseError),
JsonError(Error),
IoError(Error),
HelperError(XRPLHelperException),
CoreError(XRPLCoreException),
Other(String),
}
Expand description
Define a custom error type for CLI operations
Variants§
WalletError(XRPLWalletException)
ClientError(XRPLClientException)
UrlParseError(ParseError)
JsonError(Error)
IoError(Error)
HelperError(XRPLHelperException)
CoreError(XRPLCoreException)
Other(String)
Trait Implementations§
Source§impl From<ParseError> for CliError
impl From<ParseError> for CliError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<XRPLClientException> for CliError
impl From<XRPLClientException> for CliError
Source§fn from(source: XRPLClientException) -> Self
fn from(source: XRPLClientException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLCoreException> for CliError
impl From<XRPLCoreException> for CliError
Source§fn from(source: XRPLCoreException) -> Self
fn from(source: XRPLCoreException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLHelperException> for CliError
impl From<XRPLHelperException> for CliError
Source§fn from(source: XRPLHelperException) -> Self
fn from(source: XRPLHelperException) -> Self
Converts to this type from the input type.
Source§impl From<XRPLWalletException> for CliError
impl From<XRPLWalletException> for CliError
Source§fn from(source: XRPLWalletException) -> Self
fn from(source: XRPLWalletException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for CliError
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl !UnwindSafe for CliError
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.