ckb_error

Function is_internal_db_error

Source
pub fn is_internal_db_error(error: &Error) -> bool
Expand description

Return whether the error’s kind is InternalErrorKind::Database

§Panic

Panic if the error kind is InternalErrorKind::DataCorrupted. If the database is corrupted, panic is better than handle it silently.