Enum loro_internal::LoroError
source · pub enum LoroError {
Show 22 variants
UnmatchedContext {
expected: u64,
found: u64,
},
DecodeVersionVectorError,
DecodeError(Box<str>),
DecodeDataCorruptionError,
IncompatibleFutureEncodingError(usize),
JsError(Box<str>),
LockError,
DuplicatedTransactionError,
NotFoundError(Box<str>),
TransactionError(Box<str>),
OutOfBound {
pos: usize,
len: usize,
},
UsedOpID {
id: ID,
},
TreeError(LoroTreeError),
ArgErr(Box<str>),
AutoCommitNotStarted,
StyleConfigMissing(InternalString),
Unknown(Box<str>),
InvalidFrontierIdNotFound(ID),
ImportWhenInTxn,
MisuseDettachedContainer {
method: &'static str,
},
NotImplemented(&'static str),
ReattachAttachedContainer,
}
Variants§
UnmatchedContext
DecodeVersionVectorError
DecodeError(Box<str>)
DecodeDataCorruptionError
IncompatibleFutureEncodingError(usize)
JsError(Box<str>)
LockError
DuplicatedTransactionError
NotFoundError(Box<str>)
TransactionError(Box<str>)
OutOfBound
UsedOpID
TreeError(LoroTreeError)
ArgErr(Box<str>)
AutoCommitNotStarted
StyleConfigMissing(InternalString)
Unknown(Box<str>)
InvalidFrontierIdNotFound(ID)
ImportWhenInTxn
MisuseDettachedContainer
NotImplemented(&'static str)
ReattachAttachedContainer
Trait Implementations§
source§impl Error for LoroError
impl Error for LoroError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ColumnarError> for LoroError
impl From<ColumnarError> for LoroError
source§fn from(e: ColumnarError) -> LoroError
fn from(e: ColumnarError) -> LoroError
Converts to this type from the input type.
source§impl From<LoroTreeError> for LoroError
impl From<LoroTreeError> for LoroError
source§fn from(source: LoroTreeError) -> LoroError
fn from(source: LoroTreeError) -> LoroError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoroError
impl RefUnwindSafe for LoroError
impl Send for LoroError
impl Sync for LoroError
impl Unpin for LoroError
impl UnwindSafe for LoroError
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