pub enum GlueXCoreError {
Show 14 variants
TimestampNoDigits(String),
TimestampChrono(String),
HistogramTooFewEdges {
len: usize,
},
HistogramNonFiniteEdge {
index: usize,
value: f64,
},
HistogramNotStrictlyIncreasing {
index: usize,
next_index: usize,
left: f64,
right: f64,
},
HistogramCountLengthMismatch {
expected: usize,
found: usize,
},
HistogramErrorLengthMismatch {
expected: usize,
found: usize,
},
HistogramWeightLengthMismatch {
expected: usize,
found: usize,
},
HistogramEmptyBinCount,
HistogramInvalidUniformLimits {
min: f64,
max: f64,
},
UnknownRunPeriod(RunNumber),
RunPeriodParse(String),
MissingRESTVersions(RunPeriod),
UnknownRESTVersion {
run_period: RunPeriod,
requested: RESTVersion,
},
}Expand description
Unified error type for all gluex-core fallible APIs.
Variants§
TimestampNoDigits(String)
Input contained no digits from which to form a timestamp.
TimestampChrono(String)
Parsed timestamp was invalid according to the chrono crate.
HistogramTooFewEdges
Histogram requires at least two edge values.
HistogramNonFiniteEdge
Edge value was NaN or infinite.
HistogramNotStrictlyIncreasing
Consecutive edge values were not strictly increasing.
HistogramCountLengthMismatch
Number of counts does not match number of bins.
HistogramErrorLengthMismatch
Number of errors does not match number of bins.
HistogramWeightLengthMismatch
Number of weights does not match number of values.
HistogramEmptyBinCount
Uniform histogram requested with zero bins.
HistogramInvalidUniformLimits
Uniform histogram limits were not finite and strictly increasing.
UnknownRunPeriod(RunNumber)
Run number does not belong to any known run period.
RunPeriodParse(String)
Could not parse run-period shorthand.
MissingRESTVersions(RunPeriod)
No REST metadata exists for the run period.
UnknownRESTVersion
Requested REST version is not defined for the run period.
Trait Implementations§
Source§impl Clone for GlueXCoreError
impl Clone for GlueXCoreError
Source§fn clone(&self) -> GlueXCoreError
fn clone(&self) -> GlueXCoreError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlueXCoreError
impl Debug for GlueXCoreError
Source§impl Display for GlueXCoreError
impl Display for GlueXCoreError
Source§impl Error for GlueXCoreError
impl Error for GlueXCoreError
1.30.0 · 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 PartialEq for GlueXCoreError
impl PartialEq for GlueXCoreError
impl StructuralPartialEq for GlueXCoreError
Auto Trait Implementations§
impl Freeze for GlueXCoreError
impl RefUnwindSafe for GlueXCoreError
impl Send for GlueXCoreError
impl Sync for GlueXCoreError
impl Unpin for GlueXCoreError
impl UnwindSafe for GlueXCoreError
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