Struct ckb_error::InternalError
source · pub struct InternalError { /* private fields */ }
Expand description
Internal error.
Implementations§
source§impl InternalError
impl InternalError
sourcepub fn kind(&self) -> InternalErrorKind
pub fn kind(&self) -> InternalErrorKind
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 InternalError
impl Clone for InternalError
source§fn clone(&self) -> InternalError
fn clone(&self) -> InternalError
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 InternalError
impl Debug for InternalError
source§impl Display for InternalError
impl Display for InternalError
source§impl Error for InternalError
impl Error for InternalError
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<Error> for InternalError
impl From<Error> for InternalError
source§impl From<InternalError> for Error
impl From<InternalError> for Error
source§fn from(error: InternalError) -> Self
fn from(error: InternalError) -> Self
Converts to this type from the input type.
source§impl From<InternalErrorKind> for InternalError
impl From<InternalErrorKind> for InternalError
source§fn from(kind: InternalErrorKind) -> Self
fn from(kind: InternalErrorKind) -> Self
Converts to this type from the input type.
source§impl From<OtherError> for InternalError
impl From<OtherError> for InternalError
source§fn from(error: OtherError) -> Self
fn from(error: OtherError) -> Self
Converts to this type from the input type.