Skip to main content

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;
    fn is_restrict(&self) -> bool;
}
Expand description

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

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§