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§
source§impl 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§
source§impl Error for CliError
 
impl Error for CliError
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<Backtraced> for CliError
 
impl From<Backtraced> for CliError
source§fn from(source: Backtraced) -> Self
 
fn from(source: Backtraced) -> Self
Converts to this type from the input type.
source§impl LeoMessageCode for CliError
 
impl LeoMessageCode for CliError
Implements the trait for LeoError Codes.
source§fn error_code(&self) -> String
 
fn error_code(&self) -> String
Returns the prefixed error identifier.
source§fn warning_code(&self) -> String
 
fn warning_code(&self) -> String
Returns the prefixed warning identifier.
source§fn message_type() -> String
 
fn message_type() -> String
Returns the message’s code type for the program.
source§fn 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