pub enum EngineError {
Store(StoreError),
Tracking(TrackingError),
Executor(ExecutorError),
MigrationExecution {
migration: String,
direction: &'static str,
statement_ordinal: usize,
statement: Box<StatementDiagnostic>,
source: Box<ExecutorError>,
},
Graph(GraphError),
Offline(OfflineError),
SqlPlan(SqlPlanError),
NeedsInput(Vec<Clarification>),
Config(String),
}Expand description
Errors returned by [MigrationEngine].
Variants§
Store(StoreError)
Migration storage failed.
Tracking(TrackingError)
Tracking storage failed.
Executor(ExecutorError)
SQL execution failed.
MigrationExecution
One rendered migration statement was rejected by the target database.
Fields
§
statement: Box<StatementDiagnostic>Bounded statement identity and optional database-provided location.
§
source: Box<ExecutorError>Database failure returned by the active executor.
Graph(GraphError)
Migration graph construction failed.
Offline(OfflineError)
Offline planning failed.
SqlPlan(SqlPlanError)
SQL rendering failed.
NeedsInput(Vec<Clarification>)
User decisions are required before migration generation can continue.
Config(String)
The requested operation cannot be completed from current migration state.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<EngineError> for CommandError
impl From<EngineError> for CommandError
Source§fn from(error: EngineError) -> Self
fn from(error: EngineError) -> Self
Preserves clarification suspension as a first-class runner error.
Source§impl From<ExecutorError> for EngineError
impl From<ExecutorError> for EngineError
Source§fn from(source: ExecutorError) -> Self
fn from(source: ExecutorError) -> Self
Converts to this type from the input type.
Source§impl From<GraphError> for EngineError
impl From<GraphError> for EngineError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Source§impl From<OfflineError> for EngineError
impl From<OfflineError> for EngineError
Source§fn from(source: OfflineError) -> Self
fn from(source: OfflineError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for EngineError
impl From<StoreError> for EngineError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<TrackingError> for EngineError
impl From<TrackingError> for EngineError
Source§fn from(source: TrackingError) -> Self
fn from(source: TrackingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for EngineError
impl Freeze for EngineError
impl Move for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more