pub enum PackageError {
Show 18 variants
ArchiveRead(ZipError),
MissingManifest,
MissingContractRecord,
ReservedModuleName {
module: String,
},
ArchiveWrite(ZipError),
ArchiveWriteIo {
source: Error,
},
ManifestParse {
source: Error,
},
ManifestSerialise {
source: Error,
},
ContractParse {
source: Error,
},
ContractSerialise {
source: Error,
},
UnknownFormatVersion {
found: u32,
},
MissingEntryModule {
module: String,
},
IntegrityMismatch {
expected: String,
computed: String,
},
MalformedBeamEntry {
entry: String,
},
MalformedAwlEntry {
entry: String,
},
AwlDocumentNotUtf8 {
entry: String,
source: FromUtf8Error,
},
MissingAwlDocument,
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.
MissingContractRecord
A new package builder has no contract record to bind into .v4 identity.
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.
ContractParse
The durable contract record is present but is not valid contract JSON.
ContractSerialise
The durable contract record could not be serialised.
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.
MalformedAwlEntry
An awl/ archive entry is malformed, duplicated, or names a family
this format does not define.
AwlDocumentNotUtf8
The archived AWL document is not UTF-8 text.
Fields
source: FromUtf8ErrorDecoding failure reported by the standard library.
MissingAwlDocument
The archive carries imported schema files with no document to own them, so the provenance it claims is incomplete.
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()