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,
error: impl Display,
) -> Self
pub fn failed_to_initialize_package( package: impl Display, path: impl Debug, error: impl Display, ) -> Self
For when the package failed to initialize.
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_read_manifest(error: impl Display) -> Self
pub fn failed_to_write_manifest(error: impl Display) -> Self
pub fn failed_to_create_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 failed_to_deserialize_manifest_file( path: impl Display, error: impl ErrorArg, ) -> Self
pub fn failed_to_serialize_manifest_file( path: impl Display, error: impl ErrorArg, ) -> Self
pub fn failed_to_deserialize_lock_file(error: impl ErrorArg) -> Self
pub fn invalid_lock_file_formatting() -> Self
pub fn unimplemented_command(command: impl Display) -> Self
pub fn invalid_file_name_dependency(name: impl Display) -> Self
pub fn dependency_not_found(name: impl Display) -> Self
pub fn conflicting_on_chain_program_name( first: impl Display, second: impl Display, ) -> Self
pub fn missing_on_chain_program_name() -> Self
pub fn failed_to_read_manifest_file( path: impl Display, error: impl ErrorArg, ) -> Self
pub fn insufficient_balance( address: impl Display, balance: impl Display, fee: impl Display, ) -> Self
pub fn execution_error(error: impl Display) -> Self
pub fn snarkvm_error(error: impl Display) -> Self
pub fn failed_to_load_package(path: impl Display) -> Self
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.
Source§fn error_code(&self) -> String
fn error_code(&self) -> String
Source§fn warning_code(&self) -> String
fn warning_code(&self) -> String
Source§fn message_type() -> String
fn message_type() -> String
Source§fn code_identifier() -> i8
fn code_identifier() -> i8
Auto Trait Implementations§
impl Freeze for PackageError
impl RefUnwindSafe for PackageError
impl Send for PackageError
impl Sync for PackageError
impl Unpin for PackageError
impl UnwindSafe for PackageError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more