#[non_exhaustive]pub enum Error {
Show 19 variants
OutOfMemory,
IoError(Error),
NotOmf(String),
NewerVersion(u32, u32),
PreReleaseVersion(u32, u32, String),
DeserializationFailed(Error),
SerializationFailed(Error),
ValidationFailed(Problems),
UnsafeCast(&'static str, &'static str),
NotImageData,
NotParquetData,
LimitExceeded(Limit),
InvalidData(Box<InvalidData>),
ZipMemberMissing(String),
ZipError(String),
ParquetSchemaMismatch(Arc<Type>, Arc<Vec<Type>>),
ParquetError(Box<ParquetError>),
ImageError(Box<ImageError>),
Omf1Error(Omf1Error),
}
Expand description
Errors generated by this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OutOfMemory
Used when memory allocation fails.
IoError(Error)
Forward errors from file operations.
NotOmf(String)
When the correct file header is not detected.
NewerVersion(u32, u32)
When the file version is newer than the library.
PreReleaseVersion(u32, u32, String)
The file version is pre-release and can’t be loaded by release versions.
DeserializationFailed(Error)
Forwards serde_json
errors when deserializing.
SerializationFailed(Error)
Forwards serde_json
errors when serializing.
ValidationFailed(Problems)
Passes out errors detected during OMF validation.
UnsafeCast(&'static str, &'static str)
When trying to cast f64
to f32
for example, as that would lose precision.
NotImageData
Writing an image that isn’t in PNG or JPEG format.
NotParquetData
Writing an array that isn’t in Parquet format.
LimitExceeded(Limit)
Tried to read something that exceeds the provided limits.
InvalidData(Box<InvalidData>)
Array data errors, when reading or writing.
ZipMemberMissing(String)
A data file or index is missing from the zip.
ZipError(String)
Zip read or write failed.
ParquetSchemaMismatch(Arc<Type>, Arc<Vec<Type>>)
When a Parquet schema doesn’t match.
ParquetError(Box<ParquetError>)
Forward errors from array operations.
ImageError(Box<ImageError>)
Forward errors from image operations.
Omf1Error(Omf1Error)
Errors from OMF1 conversion.