pub enum CCDBError {
Show 14 variants
SqliteError(Error),
DirectoryNotFoundError(String),
TableNotFoundError(String),
PathResolutionError(Error),
InvalidPathError(String),
VariationNotFoundError(String),
NotAbsolutePath(String),
IllegalCharacter(String),
InvalidRunNumberError(String),
ColumnCountMismatch {
expected: usize,
found: usize,
},
ParseError {
column: usize,
row: usize,
column_type: ColumnType,
text: String,
},
RowOutOfBounds {
requested: usize,
n_rows: usize,
},
GlueXCoreError(GlueXCoreError),
MissingConnectionEnv(String),
}Expand description
Errors that can occur while interacting with CCDB metadata or payloads.
Variants§
SqliteError(Error)
Wrapper around rusqlite::Error.
DirectoryNotFoundError(String)
Requested directory path could not be resolved.
TableNotFoundError(String)
Requested table path could not be resolved.
PathResolutionError(Error)
Failed to resolve or canonicalize a filesystem path.
InvalidPathError(String)
Path was malformed or missing a required component.
VariationNotFoundError(String)
Variation name does not exist in the database.
NotAbsolutePath(String)
Path did not begin with a forward slash.
IllegalCharacter(String)
Path contained a character outside the allowed set.
InvalidRunNumberError(String)
Run number was not a valid integer.
ColumnCountMismatch
Failed to parse data because the number of cells was not divisible by the number of columns.
Fields
ParseError
Failed to parse a cell to the given type.
Fields
column_type: ColumnTypeThe expected column type for the cell.
RowOutOfBounds
Failed to retrieve a row due to an out-of-bounds index.
GlueXCoreError(GlueXCoreError)
Timestamp string failed to parse.
MissingConnectionEnv(String)
Required environment variable is not set.
Trait Implementations§
Source§impl Error for CCDBError
impl Error for CCDBError
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
Source§impl From<GlueXCoreError> for CCDBError
impl From<GlueXCoreError> for CCDBError
Source§fn from(source: GlueXCoreError) -> Self
fn from(source: GlueXCoreError) -> Self
Auto Trait Implementations§
impl Freeze for CCDBError
impl !RefUnwindSafe for CCDBError
impl Send for CCDBError
impl Sync for CCDBError
impl Unpin for CCDBError
impl !UnwindSafe for CCDBError
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