pub enum SpectrumFileError {
Io(Error),
Json(Error),
SchemaValidation(String),
CrossFieldValidation(String),
}Expand description
All errors that can occur while loading or validating a spectrum file.
Variants§
Io(Error)
Json(Error)
SchemaValidation(String)
Structural schema violation (wrong type, missing required field, value not in allowed enum set, etc.)
CrossFieldValidation(String)
Cross-field constraint violation (array length mismatch, non-monotonic wavelengths, value out of physical range, etc.)
Trait Implementations§
Source§impl Debug for SpectrumFileError
impl Debug for SpectrumFileError
Source§impl Display for SpectrumFileError
impl Display for SpectrumFileError
Source§impl Error for SpectrumFileError
impl Error for SpectrumFileError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for SpectrumFileError
impl From<Error> for SpectrumFileError
Auto Trait Implementations§
impl Freeze for SpectrumFileError
impl !RefUnwindSafe for SpectrumFileError
impl Send for SpectrumFileError
impl Sync for SpectrumFileError
impl Unpin for SpectrumFileError
impl UnsafeUnpin for SpectrumFileError
impl !UnwindSafe for SpectrumFileError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more