deltalake_core/kernel/
error.rsuse super::DataType;
pub type DeltaResult<T, E = Error> = std::result::Result<T, E>;
#[derive(thiserror::Error, Debug)]
#[allow(missing_docs)]
pub enum Error {
#[error("Arrow error: {0}")]
Arrow(#[from] arrow_schema::ArrowError),
#[error("Generic delta kernel error: {0}")]
Generic(String),
#[error("Generic error: {source}")]
GenericError {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
},
#[error("Arrow error: {0}")]
Parquet(#[from] parquet::errors::ParquetError),
#[error("Error interacting with object store: {0}")]
ObjectStore(#[from] object_store::Error),
#[error("File not found: {0}")]
FileNotFound(String),
#[error("{0}")]
MissingColumn(String),
#[error("Expected column type: {0}")]
UnexpectedColumnType(String),
#[error("Expected is missing: {0}")]
MissingData(String),
#[error("No table version found.")]
MissingVersion,
#[error("Deletion Vector error: {0}")]
DeletionVector(String),
#[error("Schema error: {0}")]
Schema(String),
#[error("Invalid url: {0}")]
InvalidUrl(#[from] url::ParseError),
#[error("Invalid url: {0}")]
MalformedJson(#[from] serde_json::Error),
#[error("No table metadata found in delta log.")]
MissingMetadata,
#[error("Invalid JSON in invariant expression, line=`{line}`, err=`{json_err}`")]
InvalidInvariantJson {
json_err: serde_json::error::Error,
line: String,
},
#[error("Table metadata is invalid: {0}")]
MetadataError(String),
#[error("Failed to parse value '{0}' as '{1}'")]
Parse(String, DataType),
}