Enum leo_errors::errors::cli::cli_errors::CliError
source · pub enum CliError {
Formatted(Formatted),
Backtraced(Backtraced),
}Expand description
CliError enum that represents all the errors for the leo-lang crate.
Variants
Formatted(Formatted)
Backtraced(Backtraced)
Implementations
sourceimpl CliError
impl CliError
sourcepub fn cli_io_error(error: impl ErrorArg) -> Self
pub fn cli_io_error(error: impl ErrorArg) -> Self
For when the CLI experiences an IO error.
sourcepub fn could_not_fetch_versions(error: impl ErrorArg) -> Self
pub fn could_not_fetch_versions(error: impl ErrorArg) -> Self
For when the CLI could not fetch the versions.
sourcepub fn failed_to_enable_ansi_support() -> Self
pub fn failed_to_enable_ansi_support() -> Self
For when the CLI fails to enable ansi support.
sourcepub fn self_update_error(error: impl ErrorArg) -> Self
pub fn self_update_error(error: impl ErrorArg) -> Self
For when the CLI fails to self update.
sourcepub fn self_update_build_error(error: impl ErrorArg) -> Self
pub fn self_update_build_error(error: impl ErrorArg) -> Self
For when the CLI fails to self update.
sourcepub fn old_release_version(current: impl Display, latest: impl Display) -> Self
pub fn old_release_version(current: impl Display, latest: impl Display) -> Self
For when the CLI has an old release version.
pub fn failed_to_load_instructions(error: impl Display) -> Self
pub fn needs_leo_build() -> Self
pub fn failed_to_execute_aleo_build(error: impl Display) -> Self
pub fn failed_to_execute_aleo_new(error: impl Display) -> Self
pub fn failed_to_execute_aleo_run(error: impl Display) -> Self
pub fn failed_to_execute_aleo_node(error: impl Display) -> Self
pub fn failed_to_execute_aleo_deploy(error: impl Display) -> Self
pub fn failed_to_parse_aleo_new(error: impl Display) -> Self
pub fn failed_to_parse_aleo_run(error: impl Display) -> Self
pub fn failed_to_parse_aleo_node(error: impl Display) -> Self
pub fn failed_to_parse_aleo_deploy(error: impl Display) -> Self
pub fn num_exit_codes() -> i32
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
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<Backtraced> for CliError
impl From<Backtraced> for CliError
sourcefn from(source: Backtraced) -> Self
fn from(source: Backtraced) -> Self
Converts to this type from the input type.
sourceimpl LeoMessageCode for CliError
impl LeoMessageCode for CliError
Implements the trait for LeoError Codes.
sourcefn error_code(&self) -> String
fn error_code(&self) -> String
Returns the prefixed error identifier.
sourcefn warning_code(&self) -> String
fn warning_code(&self) -> String
Returns the prefixed warning identifier.
sourcefn message_type() -> String
fn message_type() -> String
Returns the message’s code type for the program.
sourcefn code_identifier() -> i8
fn code_identifier() -> i8
The LeoErrorCode which has a default code identifier of 037
(Leo upsidedown and backwards). This is to make the exit codes
unique to Leo itself. Read more
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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