pub enum BitemporalError {
RecordNotFound(String),
DuplicateRecordId(String),
InvalidTimeRange(String),
NoPriorRecord(String),
DatabaseError(String),
SerializationError(String),
}Expand description
Errors produced by bitemporal-runtime operations.
Variants§
RecordNotFound(String)
No record found for the given ID.
DuplicateRecordId(String)
Duplicate record ID in append operation.
InvalidTimeRange(String)
Invalid time range (valid_time > recorded_time or similar).
NoPriorRecord(String)
No supersession possible — no prior record to supersede.
DatabaseError(String)
Database error from underlying storage.
SerializationError(String)
Serialization error.
Trait Implementations§
Source§impl Debug for BitemporalError
impl Debug for BitemporalError
Source§impl Display for BitemporalError
impl Display for BitemporalError
Source§impl Error for BitemporalError
impl Error for BitemporalError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for BitemporalError
impl RefUnwindSafe for BitemporalError
impl Send for BitemporalError
impl Sync for BitemporalError
impl Unpin for BitemporalError
impl UnsafeUnpin for BitemporalError
impl UnwindSafe for BitemporalError
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