Enum ckb_error::InternalErrorKind [−][src]
pub enum InternalErrorKind {
CapacityOverflow,
DataCorrupted,
Database,
BlockAssembler,
VM,
System,
Config,
Other,
}
Expand description
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
Creates InternalError
base on InternalErrorKind
with an error as the reason.
Creates InternalError
base on InternalErrorKind
with a simple string as the reason.
Trait Implementations
Performs the conversion.
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
Mutably borrows from an owned value. Read more