Enum schemamama::Error
[−]
[src]
pub enum Error<E> { Adapter(E), Migration { version: Version, description: String, direction: Direction, error: E, }, }
An all-encompassing error type that can be returned during interaction with the migrator adapter.
Variants
Adapter(E)
A generic error that occurred while interacting with the adapter.
Migration
An error that arose from the adapter specifically during a migration's execution.
Fields of Migration
version: Version | The version of the migration that failed. |
description: String | The description of the migration that failed. |
direction: Direction | The direction in which the failed migration was ran. |
error: E | The underlying error from the adapter. |
Trait Implementations
impl<E: Debug> Debug for Error<E>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: StdError> StdError for Error<E>
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more