pub enum HawDBError {
Show 19 variants
Parse(String),
Semantic(String),
Storage(String),
FileDescriptors(FileDescriptorError),
StorageIntegrity(String),
ProjectionBusy,
Execution(String),
ResourceBudgetExceeded(Box<ResourceBudgetError>),
ReadBudgetExceeded(ReadBudgetError),
GraphExpansionCandidateLimitExceeded {
requested: usize,
limit: usize,
},
GraphExpansionPayloadLimitExceeded {
requested: usize,
limit: usize,
},
TransactionConflict {
read_epoch: u64,
committed_epoch: u64,
key: String,
},
TransactionReadDependencyRefused {
reason: String,
},
AppendSequenceExhausted {
table: String,
watermark: i64,
requested: usize,
},
CapabilityUnavailable {
capability: RuntimeCapability,
},
BranchCommandUnsupported {
command: &'static str,
context: &'static str,
},
BranchBusy {
resource: &'static str,
},
BranchEvidenceBudgetExceeded {
resource: &'static str,
requested: u64,
limit: u64,
},
BranchReclamationBlocked {
branch_id: Uuid,
catalog_revision: u64,
metadata_revision: u64,
cause: Box<HawDBError>,
},
}Variants§
Parse(String)
Semantic(String)
Storage(String)
FileDescriptors(FileDescriptorError)
StorageIntegrity(String)
ProjectionBusy
A registered Search target is retained by another native operation.
Execution(String)
ResourceBudgetExceeded(Box<ResourceBudgetError>)
Box the diagnostic so successful Result values do not grow with its fields.
ReadBudgetExceeded(ReadBudgetError)
GraphExpansionCandidateLimitExceeded
GraphExpansionPayloadLimitExceeded
TransactionConflict
TransactionReadDependencyRefused
Requested read validation cannot be proved; never downgrade isolation.
AppendSequenceExhausted
BranchCommandUnsupported
BranchBusy
BranchEvidenceBudgetExceeded
BranchReclamationBlocked
An unleased pending create prevents a complete reclamation mark. This identifies retained evidence, not authorization to discard it.
Implementations§
Source§impl HawDBError
impl HawDBError
pub fn read_budget_exceeded( resource: ReadBudgetResource, limit: usize, message: impl Into<String>, ) -> Self
Sourcepub fn from_storage_error(error: impl Error + 'static) -> Self
pub fn from_storage_error(error: impl Error + 'static) -> Self
Preserve a resource rejection through nested storage error wrappers.
Sourcepub fn from_storage_error_with_context(
error: impl Error + 'static,
context: &str,
) -> Self
pub fn from_storage_error_with_context( error: impl Error + 'static, context: &str, ) -> Self
from_storage_error, prefixing a generic Storage message with
context and leaving a preserved typed cause (e.g. FileDescriptors)
unprefixed and unchanged.
pub const fn is_retryable_transaction_conflict(&self) -> bool
Trait Implementations§
Source§impl Clone for HawDBError
impl Clone for HawDBError
Source§impl Debug for HawDBError
impl Debug for HawDBError
Source§impl Display for HawDBError
impl Display for HawDBError
impl Eq for HawDBError
Source§impl Error for HawDBError
impl Error for HawDBError
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<Error> for HawDBError
impl From<Error> for HawDBError
Source§impl From<ResourceBudgetError> for HawDBError
impl From<ResourceBudgetError> for HawDBError
Source§fn from(error: ResourceBudgetError) -> Self
fn from(error: ResourceBudgetError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HawDBError
impl PartialEq for HawDBError
impl StructuralPartialEq for HawDBError
Auto Trait Implementations§
impl Freeze for HawDBError
impl RefUnwindSafe for HawDBError
impl Send for HawDBError
impl Sync for HawDBError
impl Unpin for HawDBError
impl UnsafeUnpin for HawDBError
impl UnwindSafe for HawDBError
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