Struct ckb_verification::BlockError
source · pub struct BlockError { /* private fields */ }Expand description
Errors due the fact that the block rule is not respected.
Implementations§
source§impl BlockError
impl BlockError
sourcepub fn kind(&self) -> BlockErrorKind
pub fn kind(&self) -> BlockErrorKind
Returns the general category of this error.
sourcepub fn downcast_ref<E>(&self) -> Option<&E>where
E: Display + Debug + Send + Sync + 'static,
pub fn downcast_ref<E>(&self) -> Option<&E>where
E: Display + Debug + Send + Sync + 'static,
Downcast this error object by reference.
sourcepub fn root_cause(&self) -> &(dyn Error + 'static)
pub fn root_cause(&self) -> &(dyn Error + 'static)
The lowest level cause of this error — this error’s cause’s cause’s cause etc.
Trait Implementations§
source§impl Clone for BlockError
impl Clone for BlockError
source§fn clone(&self) -> BlockError
fn clone(&self) -> BlockError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BlockError
impl Debug for BlockError
source§impl Display for BlockError
impl Display for BlockError
source§impl Error for BlockError
impl Error for BlockError
1.30.0 · 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<BlockError> for Error
impl From<BlockError> for Error
source§fn from(error: BlockError) -> Self
fn from(error: BlockError) -> Self
Converts to this type from the input type.
source§impl From<BlockErrorKind> for BlockError
impl From<BlockErrorKind> for BlockError
source§fn from(kind: BlockErrorKind) -> Self
fn from(kind: BlockErrorKind) -> Self
Converts to this type from the input type.
source§impl From<BlockTransactionsError> for BlockError
impl From<BlockTransactionsError> for BlockError
source§fn from(error: BlockTransactionsError) -> Self
fn from(error: BlockTransactionsError) -> Self
Converts to this type from the input type.
source§impl From<CellbaseError> for BlockError
impl From<CellbaseError> for BlockError
source§fn from(error: CellbaseError) -> Self
fn from(error: CellbaseError) -> Self
Converts to this type from the input type.
source§impl From<CommitError> for BlockError
impl From<CommitError> for BlockError
source§fn from(error: CommitError) -> Self
fn from(error: CommitError) -> Self
Converts to this type from the input type.
source§impl From<UnclesError> for BlockError
impl From<UnclesError> for BlockError
source§fn from(error: UnclesError) -> Self
fn from(error: UnclesError) -> Self
Converts to this type from the input type.
source§impl From<UnknownParentError> for BlockError
impl From<UnknownParentError> for BlockError
source§fn from(error: UnknownParentError) -> Self
fn from(error: UnknownParentError) -> Self
Converts to this type from the input type.