Enum aptos_cli_config::error::CliError
source · [−]pub enum CliError {
AbortedError,
ApiError(String),
BCS(&'static str, Error),
CommandArgumentError(String),
ConfigLoadError(String, String),
ConfigNotFoundError(String),
IO(String, Error),
MoveCompilationError(String),
MoveTestError(String),
UnableToParse(&'static str, String),
UnableToReadFile(String, String),
UnexpectedError(String),
}Expand description
CLI Errors for reporting through telemetry and outputs
Variants
AbortedError
ApiError(String)
BCS(&'static str, Error)
CommandArgumentError(String)
ConfigLoadError(String, String)
ConfigNotFoundError(String)
IO(String, Error)
MoveCompilationError(String)
MoveTestError(String)
UnableToParse(&'static str, String)
UnableToReadFile(String, String)
UnexpectedError(String)
Implementations
Trait Implementations
sourceimpl Error for CliError
impl Error for CliError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<CryptoMaterialError> for CliError
impl From<CryptoMaterialError> for CliError
sourcefn from(e: CryptoMaterialError) -> Self
fn from(e: CryptoMaterialError) -> Self
Converts to this type from the input type.
sourceimpl From<DecodeError> for CliError
impl From<DecodeError> for CliError
sourcefn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<FromHexError> for CliError
impl From<FromHexError> for CliError
sourcefn from(e: FromHexError) -> Self
fn from(e: FromHexError) -> Self
Converts to this type from the input type.
sourceimpl From<FromUtf8Error> for CliError
impl From<FromUtf8Error> for CliError
sourcefn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CliError
impl Send for CliError
impl Sync for CliError
impl Unpin for CliError
impl !UnwindSafe for CliError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more