pub enum SeedKitError {
Show 18 variants
Connection {
message: String,
connection_hint: String,
source: Error,
},
Introspection {
query: String,
source: Error,
},
NoDatabaseUrl,
UnsupportedDatabase {
scheme: String,
},
CircularDependency {
tables: String,
suggested_break: String,
},
UnbreakableCycle {
tables: String,
},
UniqueExhausted {
table: String,
column: String,
row_index: usize,
max_retries: usize,
},
InsertFailed {
table: String,
row_index: usize,
message: String,
sql_preview: String,
source: Error,
},
DeferredUpdateTarget {
table: String,
row_index: usize,
message: String,
},
ForeignKeyResolution {
source_table: String,
source_column: String,
target_table: String,
target_column: String,
},
LockFile {
message: String,
},
SchemaDrift {
message: String,
},
Config {
message: String,
},
LlmError {
message: String,
},
Output {
message: String,
source: Error,
},
CheckConstraintViolation {
table: String,
column: String,
constraint: String,
value: String,
},
CompositeUniqueExhausted {
table: String,
columns: String,
row_index: usize,
max_retries: usize,
},
Other(String),
}Expand description
All errors that can occur in SeedKit operations.
Variants§
Connection
Introspection
NoDatabaseUrl
UnsupportedDatabase
CircularDependency
UnbreakableCycle
UniqueExhausted
InsertFailed
DeferredUpdateTarget
ForeignKeyResolution
LockFile
SchemaDrift
Config
LlmError
Output
CheckConstraintViolation
CompositeUniqueExhausted
Other(String)
Trait Implementations§
Source§impl Debug for SeedKitError
impl Debug for SeedKitError
Source§impl Display for SeedKitError
impl Display for SeedKitError
Source§impl Error for SeedKitError
impl Error for SeedKitError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SeedKitError
impl !UnwindSafe for SeedKitError
impl Forget for SeedKitError
impl Freeze for SeedKitErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const dyn Error + Send + Sync is !null: Freeze,
PhantomData<dyn Error + Send + Sync>: Freeze,
*const dyn DatabaseError is !null: Freeze,
PhantomData<dyn DatabaseError>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const MigrateError is !null: Freeze,
PhantomData<MigrateError>: Freeze,
impl Move for SeedKitError
impl Send for SeedKitErrorwhere
RawVecInner: Send,
BoxRaw<dyn Error + Send + Sync>: Send,
BoxRaw<dyn DatabaseError>: Send,
Repr: Send,
BoxRaw<MigrateError>: Send,
impl Sync for SeedKitErrorwhere
RawVecInner: Sync,
BoxRaw<dyn Error + Send + Sync>: Sync,
BoxRaw<dyn DatabaseError>: Sync,
Repr: Sync,
BoxRaw<MigrateError>: Sync,
impl Unpin for SeedKitError
impl UnsafeUnpin for SeedKitErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn Error + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Error + Send + Sync>: UnsafeUnpin,
*const dyn DatabaseError is !null: UnsafeUnpin,
PhantomData<dyn DatabaseError>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const MigrateError is !null: UnsafeUnpin,
PhantomData<MigrateError>: UnsafeUnpin,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.