DatabaseErrorExt

Trait DatabaseErrorExt 

Source
pub trait DatabaseErrorExt {
    // Required methods
    fn is_error_code(&self, error_code: &str) -> bool;
    fn is_database_does_not_exist(&self) -> bool;
    fn is_database_exists(&self) -> bool;
    fn is_table_does_not_exist(&self) -> bool;
    fn is_duplicate_record(&self) -> bool;
}
Expand description

Database error extension helper to determine common types of database errors that can be safely caught

Required Methods§

Implementations on Foreign Types§

Source§

impl DatabaseErrorExt for &dyn DatabaseError

Implementors§