pub enum AkarError {
Storage(StorageError),
Transaction(TransactionError),
Catalog(CatalogError),
Binder(BinderError),
Planner(PlannerError),
Processor(ProcessorError),
Parser(String),
Io(Error),
Internal(String),
}Expand description
The single error type returned by all public Akar APIs.
Variants§
Storage(StorageError)
Storage layer failure (WAL, buffer manager, table not found, etc.)
Transaction(TransactionError)
Transaction lifecycle failure (lock conflict, shutdown, etc.)
Catalog(CatalogError)
Catalog operation failure
Binder(BinderError)
Binder (semantic analysis) failure
Planner(PlannerError)
Logical planner failure
Processor(ProcessorError)
Query processor / execution failure
Parser(String)
Parser failure
Io(Error)
I/O error
Internal(String)
Internal invariant violation (should never happen)
Trait Implementations§
Source§impl Error for AkarError
impl Error for AkarError
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<BinderError> for AkarError
impl From<BinderError> for AkarError
Source§fn from(e: BinderError) -> Self
fn from(e: BinderError) -> Self
Converts to this type from the input type.
Source§impl From<CatalogError> for AkarError
impl From<CatalogError> for AkarError
Source§fn from(e: CatalogError) -> Self
fn from(e: CatalogError) -> Self
Converts to this type from the input type.
Source§impl From<PlannerError> for AkarError
impl From<PlannerError> for AkarError
Source§fn from(e: PlannerError) -> Self
fn from(e: PlannerError) -> Self
Converts to this type from the input type.
Source§impl From<ProcessorError> for AkarError
impl From<ProcessorError> for AkarError
Source§fn from(e: ProcessorError) -> Self
fn from(e: ProcessorError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for AkarError
impl From<StorageError> for AkarError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for AkarError
impl From<TransactionError> for AkarError
Source§fn from(e: TransactionError) -> Self
fn from(e: TransactionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AkarError
impl !UnwindSafe for AkarError
impl Freeze for AkarError
impl Send for AkarError
impl Sync for AkarError
impl Unpin for AkarError
impl UnsafeUnpin for AkarError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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