pub enum Hdf5Error {
Io(Error),
Format(FormatError),
IoLayer(IoError),
NotFound(String),
InvalidState(String),
TypeMismatch(String),
Unsupported(String),
DanglingLink {
link: String,
target: String,
},
ExternalFileNotFound {
link: String,
file: String,
searched: Vec<String>,
},
}Expand description
Errors that can occur when using the HDF5 public API.
Variants§
Io(Error)
An I/O error from the operating system.
Format(FormatError)
A low-level format encoding/decoding error.
IoLayer(IoError)
An I/O-layer error from hdf5-io.
NotFound(String)
A requested object (dataset, group, attribute) was not found.
The string contains the name of the missing object (e.g., dataset name).
InvalidState(String)
The file or object is in an invalid state for the requested operation.
TypeMismatch(String)
A type mismatch between the Rust type and the HDF5 datatype.
Unsupported(String)
The object exists in the file but uses a feature this crate cannot
decode. The string names the feature. Distinct from
NotFound: the name is in the listing, the content
is out of reach.
DanglingLink
A soft or external link whose target does not exist. H5Dopen on a
path through such a link fails; the name itself is present in the
listing. target is the link value: a path for a soft link,
file::path for an external one.
ExternalFileNotFound
An external link whose target file could not be opened, listing the candidate paths that were tried.
Trait Implementations§
Source§impl Error for Hdf5Error
impl Error for Hdf5Error
1.30.0 · 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()