pub enum CoreError {
TableNotFound(String),
TableAlreadyRegistered(String),
SchemaValidation(String),
TypeMapping {
source: Box<dyn Error + Send + Sync>,
},
Arrow(ArrowError),
}Expand description
Top-level error type for rhei-core operations.
Variants cover schema-registry operations and Arrow type conversions. Concrete engine errors (OLTP/OLAP) are defined in their respective crates and do not flow through this type unless explicitly wrapped.
Variants§
TableNotFound(String)
A lookup was performed for a table that has not been registered in the
crate::SchemaRegistry.
TableAlreadyRegistered(String)
An attempt was made to crate::SchemaRegistry::register a table name
that is already present. The caller should use
crate::SchemaRegistry::update for schema evolution instead.
SchemaValidation(String)
A schema or identifier failed validation. The inner string contains a human-readable explanation suitable for surfacing to callers.
Validation checks include: empty identifier, disallowed characters, missing primary key, and duplicate column names.
TypeMapping
An Arrow DataType could not be mapped to or from a SQL type string.
The inner std::error::Error carries the upstream failure.
Arrow(ArrowError)
Transparent wrapper around arrow::error::ArrowError.
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
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()