Enum leo_errors::errors::package::package_errors::PackageError
source · pub enum PackageError {
Formatted(Formatted),
Backtraced(Backtraced),
}
Expand description
PackageError enum that represents all the errors for the leo-package
crate.
Variants§
Formatted(Formatted)
Backtraced(Backtraced)
Implementations§
source§impl PackageError
impl PackageError
sourcepub fn failed_to_get_input_file_entry(error: impl ErrorArg) -> Self
pub fn failed_to_get_input_file_entry(error: impl ErrorArg) -> Self
For when getting a input file entry failed.
sourcepub fn failed_to_get_input_file_type(
file: impl Debug,
error: impl ErrorArg
) -> Self
pub fn failed_to_get_input_file_type( file: impl Debug, error: impl ErrorArg ) -> Self
For when getting the input file type failed.
sourcepub fn invalid_input_file_type(file: impl Debug, type_: FileType) -> Self
pub fn invalid_input_file_type(file: impl Debug, type_: FileType) -> Self
For when getting the input file has an invalid file type.
sourcepub fn failed_to_create_inputs_directory(error: impl ErrorArg) -> Self
pub fn failed_to_create_inputs_directory(error: impl ErrorArg) -> Self
For when creating the inputs directory failed.
sourcepub fn failed_to_read_circuit_file(path: impl Debug) -> Self
pub fn failed_to_read_circuit_file(path: impl Debug) -> Self
For when reading the struct file failed.
sourcepub fn failed_to_read_inputs_directory(error: impl ErrorArg) -> Self
pub fn failed_to_read_inputs_directory(error: impl ErrorArg) -> Self
For when reading the input directory failed.
sourcepub fn failed_to_read_input_file(path: impl Debug) -> Self
pub fn failed_to_read_input_file(path: impl Debug) -> Self
For when reading the input file failed.
sourcepub fn failed_to_read_snapshot_file(path: impl Debug) -> Self
pub fn failed_to_read_snapshot_file(path: impl Debug) -> Self
For when reading the snapshot file failed.
sourcepub fn failed_to_read_checksum_file(path: impl Debug) -> Self
pub fn failed_to_read_checksum_file(path: impl Debug) -> Self
For when reading the checksum file failed.
sourcepub fn io_error_circuit_file(error: impl ErrorArg) -> Self
pub fn io_error_circuit_file(error: impl ErrorArg) -> Self
For when the struct file has an IO error.
sourcepub fn io_error_checksum_file(error: impl ErrorArg) -> Self
pub fn io_error_checksum_file(error: impl ErrorArg) -> Self
For when the checksum file has an IO error.
sourcepub fn io_error_main_file(error: impl ErrorArg) -> Self
pub fn io_error_main_file(error: impl ErrorArg) -> Self
For when the main file has an IO error.
sourcepub fn failed_to_remove_circuit_file(path: impl Debug) -> Self
pub fn failed_to_remove_circuit_file(path: impl Debug) -> Self
For when removing the struct file failed.
sourcepub fn failed_to_remove_checksum_file(path: impl Debug) -> Self
pub fn failed_to_remove_checksum_file(path: impl Debug) -> Self
For when removing the checksum file failed.
sourcepub fn failed_to_remove_snapshot_file(path: impl Debug) -> Self
pub fn failed_to_remove_snapshot_file(path: impl Debug) -> Self
For when removing the snapshot file failed.
sourcepub fn io_error_input_file(error: impl ErrorArg) -> Self
pub fn io_error_input_file(error: impl ErrorArg) -> Self
For when the input file has an IO error.
sourcepub fn io_error_gitignore_file(error: impl ErrorArg) -> Self
pub fn io_error_gitignore_file(error: impl ErrorArg) -> Self
For when the gitignore file has an IO error.
sourcepub fn failed_to_create_source_directory(error: impl ErrorArg) -> Self
pub fn failed_to_create_source_directory(error: impl ErrorArg) -> Self
For when creating the source directory failed.
sourcepub fn failed_to_get_leo_file_entry(error: impl ErrorArg) -> Self
pub fn failed_to_get_leo_file_entry(error: impl ErrorArg) -> Self
For when getting a Leo file entry failed.
sourcepub fn failed_to_get_leo_file_extension(extension: impl Debug) -> Self
pub fn failed_to_get_leo_file_extension(extension: impl Debug) -> Self
For when getting the source file extension failed.
sourcepub fn invalid_leo_file_extension(
file: impl Debug,
extension: impl Debug
) -> Self
pub fn invalid_leo_file_extension( file: impl Debug, extension: impl Debug ) -> Self
For when the Leo file has an invalid extension.
sourcepub fn failed_to_initialize_package(
package: impl Display,
path: impl Debug
) -> Self
pub fn failed_to_initialize_package( package: impl Display, path: impl Debug ) -> Self
For when the package failed to initalize.
sourcepub fn invalid_package_name(package: impl Display) -> Self
pub fn invalid_package_name(package: impl Display) -> Self
For when the package has an invalid name.
sourcepub fn directory_not_found(dirname: impl Display, path: impl Display) -> Self
pub fn directory_not_found(dirname: impl Display, path: impl Display) -> Self
For when opening a directory failed.
sourcepub fn failed_to_create_directory(
dirname: impl Display,
error: impl ErrorArg
) -> Self
pub fn failed_to_create_directory( dirname: impl Display, error: impl ErrorArg ) -> Self
For when creating a directory failed.
sourcepub fn failed_to_remove_directory(
dirname: impl Display,
error: impl ErrorArg
) -> Self
pub fn failed_to_remove_directory( dirname: impl Display, error: impl ErrorArg ) -> Self
For when removing a directory failed.
sourcepub fn failed_to_read_file(path: impl Display, error: impl ErrorArg) -> Self
pub fn failed_to_read_file(path: impl Display, error: impl ErrorArg) -> Self
For when file could not be read.
pub fn failed_to_get_file_name() -> Self
pub fn failed_to_set_cwd(dir: impl Display, error: impl ErrorArg) -> Self
pub fn failed_to_open_manifest(error: impl Display) -> Self
pub fn failed_to_open_aleo_file(error: impl Display) -> Self
pub fn failed_to_create_aleo_file(error: impl Display) -> Self
pub fn failed_to_write_aleo_file(error: impl Display) -> Self
pub fn failed_to_remove_aleo_file(error: impl Display) -> Self
pub fn empty_source_directory() -> Self
pub fn source_directory_can_contain_only_one_file() -> Self
sourcepub fn io_error_env_file(error: impl ErrorArg) -> Self
pub fn io_error_env_file(error: impl ErrorArg) -> Self
For when the environment file has an IO error.
pub fn num_exit_codes() -> i32
Trait Implementations§
source§impl Clone for PackageError
impl Clone for PackageError
source§fn clone(&self) -> PackageError
fn clone(&self) -> PackageError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageError
impl Debug for PackageError
source§impl Display for PackageError
impl Display for PackageError
source§impl Error for PackageError
impl Error for PackageError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<Backtraced> for PackageError
impl From<Backtraced> for PackageError
source§fn from(source: Backtraced) -> Self
fn from(source: Backtraced) -> Self
source§impl From<Formatted> for PackageError
impl From<Formatted> for PackageError
source§impl From<PackageError> for LeoError
impl From<PackageError> for LeoError
source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
source§impl LeoMessageCode for PackageError
impl LeoMessageCode for PackageError
Implements the trait for LeoError Codes.