pub enum RCDBError {
SqliteError(Error),
ConditionTypeNotFound(String),
MissingSchemaVersion,
EmptyConditionList,
PathResolutionError(Error),
GlueXCoreError(GlueXCoreError),
UnknownValueType(String),
ConditionTypeMismatch {
condition_name: String,
expected: ValueType,
actual: ValueType,
},
MissingTimeValue {
condition_name: String,
run_number: RunNumber,
},
MissingConnectionEnv(String),
}Expand description
Errors that can occur while interacting with RCDB metadata or payloads.
Variants§
SqliteError(Error)
Wrapper around rusqlite::Error.
ConditionTypeNotFound(String)
Requested condition name does not exist.
MissingSchemaVersion
The SQLite file does not contain the expected schema version entry.
EmptyConditionList
Fetch API requires at least one condition name.
PathResolutionError(Error)
Failed to resolve or canonicalize a filesystem path.
GlueXCoreError(GlueXCoreError)
Timestamp parsing failed while decoding a time condition.
UnknownValueType(String)
Encountered a value type identifier we do not understand.
ConditionTypeMismatch
Predicate requested a condition with a mismatched type.
Fields
MissingTimeValue
time condition row was missing a time_value entry.
Fields
MissingConnectionEnv(String)
Required environment variable is not set.
Trait Implementations§
Source§impl Error for RCDBError
impl Error for RCDBError
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<GlueXCoreError> for RCDBError
impl From<GlueXCoreError> for RCDBError
Source§fn from(source: GlueXCoreError) -> Self
fn from(source: GlueXCoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RCDBError
impl !RefUnwindSafe for RCDBError
impl Send for RCDBError
impl Sync for RCDBError
impl Unpin for RCDBError
impl !UnwindSafe for RCDBError
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