Enum ckb_error::InternalErrorKind [−][src]
A list specifying categories of ckb internal error.
This list is intended to grow over time and it is not recommended to exhaustively match against it.
It is used with the InternalError
.
Variants
An arithmetic overflow occurs during capacity calculation, e.g. Capacity::safe_add
Persistent data had corrupted
Error occurs during database operations
It indicates that the underlying error is BlockAssemblerError
VM internal error
Unknown system error
The feature is disabled or is conflicted with the configuration
Other system error
Implementations
impl InternalErrorKind
[src]
pub fn because<E>(self, reason: E) -> InternalError where
E: Error + Send + Sync + 'static,
[src]
E: Error + Send + Sync + 'static,
Creates InternalError
base on InternalErrorKind
with an error as the reason.
pub fn other<T>(self, reason: T) -> InternalError where
T: Display,
[src]
T: Display,
Creates InternalError
base on InternalErrorKind
with a simple string as the reason.
Trait Implementations
impl Clone for InternalErrorKind
[src]
fn clone(&self) -> InternalErrorKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for InternalErrorKind
[src]
impl Debug for InternalErrorKind
[src]
impl Display for InternalErrorKind
[src]
impl Eq for InternalErrorKind
[src]
impl From<InternalErrorKind> for InternalError
[src]
fn from(kind: InternalErrorKind) -> Self
[src]
impl PartialEq<InternalErrorKind> for InternalErrorKind
[src]
fn eq(&self, other: &InternalErrorKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for InternalErrorKind
[src]
impl StructuralPartialEq for InternalErrorKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for InternalErrorKind
impl Send for InternalErrorKind
impl Sync for InternalErrorKind
impl Unpin for InternalErrorKind
impl UnwindSafe for InternalErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,