Struct db_up::MigrationsError
source · pub struct MigrationsError { /* private fields */ }
Expand description
Represents errors produced by migration code
Implementations§
source§impl MigrationsError
impl MigrationsError
pub fn migration_database_step_failed( last_successful_version: Option<u32>, cause: Option<Box<dyn Error + Send + Sync>> ) -> MigrationsError
pub fn migration_database_failed( last_successful_version: Option<u32>, cause: Option<Box<dyn Error + Send + Sync>> ) -> MigrationsError
pub fn migration_setup_failed( cause: Option<Box<dyn Error + Send + Sync>> ) -> MigrationsError
pub fn migration_versioning_failed( cause: Option<Box<dyn Error + Send + Sync>> ) -> MigrationsError
pub fn custom_message( message: &str, last_successful_version: Option<u32>, cause: Option<Box<dyn Error + Send + Sync>> ) -> MigrationsError
pub fn kind(&self) -> &MigrationsErrorKind
pub fn last_successful_version(&self) -> Option<u32>
Trait Implementations§
source§impl Debug for MigrationsError
impl Debug for MigrationsError
source§impl Display for MigrationsError
impl Display for MigrationsError
source§impl Error for MigrationsError
impl Error for MigrationsError
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()