pub enum DomainError {
Show 20 variants
InvalidId {
value: String,
},
InvalidLabel {
record: &'static str,
},
ArrayLengthMismatch {
name: &'static str,
},
NonFiniteArray {
name: &'static str,
},
NonPositiveArray {
name: &'static str,
},
UnorderedGrid,
Radiation(WavelengthComponentsError),
InvalidRadiationWavelength,
ReferenceWavelengthMismatch,
InvalidInstrument,
InvalidAxialGeometry,
InvalidPositionCorrection,
StructuralPhase(StructuralPatternError),
InvalidProviderRequirement,
DuplicatePhaseId {
phase_id: RecordId,
},
DuplicateHistogramId {
histogram_id: RecordId,
},
UnknownPhaseReference {
histogram_id: RecordId,
phase_id: RecordId,
},
DuplicatePhaseReference {
histogram_id: RecordId,
phase_id: RecordId,
},
DuplicateProviderRequirement {
phase_id: RecordId,
provider_id: String,
},
InvalidMetadataKey,
}Expand description
Invalid native domain or project data.
Variants§
InvalidId
A stable identifier is invalid.
InvalidLabel
A human-readable project record label is empty.
ArrayLengthMismatch
A numeric array has an unexpected length.
NonFiniteArray
A numeric array contains a non-finite value.
NonPositiveArray
A required-positive array contains zero or a negative value.
UnorderedGrid
Pattern coordinates are not strictly increasing.
Radiation(WavelengthComponentsError)
Radiation components are invalid.
InvalidRadiationWavelength
A monochromatic radiation wavelength is non-finite or non-positive.
ReferenceWavelengthMismatch
Instrument and radiation reference wavelengths differ.
InvalidInstrument
Instrument parameters are non-finite or nonphysical.
InvalidAxialGeometry
Axial geometry is non-finite or negative.
InvalidPositionCorrection
Position-correction geometry is non-finite or nonphysical.
StructuralPhase(StructuralPatternError)
A structural phase definition is invalid.
InvalidProviderRequirement
Provider ID or version is empty.
DuplicatePhaseId
A phase ID is repeated.
DuplicateHistogramId
A histogram ID is repeated.
UnknownPhaseReference
One histogram references a missing phase.
Fields
DuplicatePhaseReference
One histogram references the same phase twice.
Fields
DuplicateProviderRequirement
One phase repeats the same exact provider requirement.
InvalidMetadataKey
A metadata key is empty.
Trait Implementations§
Source§impl Debug for DomainError
impl Debug for DomainError
Source§impl Display for DomainError
impl Display for DomainError
Source§impl Error for DomainError
impl Error for DomainError
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()
Auto Trait Implementations§
impl Freeze for DomainError
impl RefUnwindSafe for DomainError
impl Send for DomainError
impl Sync for DomainError
impl Unpin for DomainError
impl UnsafeUnpin for DomainError
impl UnwindSafe for DomainError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more