Struct dbmigrate_lib::errors::Error [−][src]
pub struct Error(pub ErrorKind, _);
Expand description
The Error type.
This tuple struct is made of two elements:
- an
ErrorKind
which is used to determine the type of the error. - An internal
State
, not meant for direct use outside oferror_chain
internals, containing:- a backtrace, generated when the error is created.
- an error chain, used for the implementation of
Error::cause()
.
Tuple Fields
0: ErrorKind
The kind of the error.
Implementations
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Construct a chained error from another boxed error and a kind, and generates a backtrace
Methods from Deref<Target = ErrorKind>
A string describing the error kind.
Trait Implementations
Constructs an error from a kind, and generates a backtrace.
Constructs a chained error from another error and a kind, and generates a backtrace.
Extends the error chain with a new entry.
Returns an object which implements Display
for printing the full
context of this error. Read more
use the Display impl or to_string()
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Failed to created/read migration files
Couldn’t get connection to pg database
Any MySQL error
Any Sqlite error