pub enum PackageError {
ArchiveRead(ZipError),
MissingManifest,
ReservedModuleName {
module: String,
},
ArchiveWrite(ZipError),
ArchiveWriteIo {
source: Error,
},
ManifestParse {
source: Error,
},
ManifestSerialise {
source: Error,
},
UnknownFormatVersion {
found: u32,
},
MissingEntryModule {
module: String,
},
IntegrityMismatch {
expected: String,
computed: String,
},
MalformedBeamEntry {
entry: String,
},
InflatedSizeExceeded {
limit: u64,
},
}Expand description
Errors produced while validating or loading a .aion package.
Variants§
ArchiveRead(ZipError)
The archive could not be read as a ZIP container.
MissingManifest
The archive does not contain the required root manifest.
ReservedModuleName
A module uses a namespace owned by the engine’s native NIF layer.
ArchiveWrite(ZipError)
The archive could not be written as a ZIP container.
ArchiveWriteIo
The archive target could not be written to the filesystem or memory buffer.
ManifestParse
The manifest entry is present but is not valid manifest JSON.
ManifestSerialise
The manifest could not be serialised for writing into the archive.
UnknownFormatVersion
The manifest declares a format version this crate does not support.
MissingEntryModule
The manifest entry module is not present in the beam set.
IntegrityMismatch
The manifest version does not match the hash recomputed from beams.
Fields
MalformedBeamEntry
A beam archive entry is malformed or ambiguous.
InflatedSizeExceeded
The archive’s entries inflate past the caller’s extraction budget.
Trait Implementations§
Source§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
use the Display impl or to_string()