Enum dicom_object::meta::Error
source · #[non_exhaustive]pub enum Error {
ReadMagicCode {
backtrace: Backtrace,
source: Error,
},
ReadValueData {
backtrace: Backtrace,
source: Error,
},
AllocationSize {
backtrace: Backtrace,
source: TryReserveError,
},
DecodeText {
name: &'static str,
source: DecodeTextError,
},
NotDicom {
backtrace: Backtrace,
},
DecodeElement {
source: Error,
},
UnexpectedTag {
tag: Tag,
backtrace: Backtrace,
},
MissingElement {
alias: &'static str,
backtrace: Backtrace,
},
UnexpectedDataValueLength {
tag: Tag,
length: Length,
backtrace: Backtrace,
},
UndefinedValueLength {
tag: Tag,
backtrace: Backtrace,
},
WriteSet {
source: Error,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ReadMagicCode
The file meta group parser could not read
the magic code DICM from its source.
ReadValueData
The file meta group parser could not fetch the value of a data element from its source.
AllocationSize
The parser could not allocate memory for the given length of a data element.
DecodeText
The file meta group parser could not decode the text in one of its data elements.
NotDicom
Invalid DICOM data, detected by checking the DICM code.
DecodeElement
An issue occurred while decoding the next data element in the file meta data set.
UnexpectedTag
A data element with an unexpected tag was retrieved: the parser was expecting another tag first, or at least one that is part of the the file meta group.
MissingElement
A required file meta data element is missing.
UnexpectedDataValueLength
The value length of a data elements in the file meta group was unexpected.
UndefinedValueLength
The value length of a data element is undefined, but knowing the length is required in its context.
WriteSet
The file meta group data set could not be written.
Trait Implementations§
source§impl Error for Errorwhere
Self: Debug + Display,
impl Error for Errorwhere Self: Debug + Display,
source§fn description(&self) -> &str
fn description(&self) -> &str
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
source§impl ErrorCompat for Error
impl ErrorCompat for Error
source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where Self: AsErrorSource,
Error::source. Read more