pub enum DataOpError {
ConstraintError {
severity: String,
code: String,
message: String,
detail: Option<String>,
cause_table: Option<String>,
constraint: Option<String>,
column: Option<String>,
datatype: Option<String>,
sql: String,
},
GenericError {
message: String,
sql: Option<String>,
},
}Variants§
ConstraintError
The Data Delete Operation failed due record is still referenced from another table
Fields
GenericError
Trait Implementations§
Source§impl Debug for DataOpError
impl Debug for DataOpError
Source§impl Display for DataOpError
impl Display for DataOpError
Source§impl Error for DataOpError
impl Error for DataOpError
1.30.0 · 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<DataOpError> for DbError
impl From<DataOpError> for DbError
Source§fn from(source: DataOpError) -> Self
fn from(source: DataOpError) -> Self
Converts to this type from the input type.
Source§impl Into<DataOpError> for PlatformError
impl Into<DataOpError> for PlatformError
Source§fn into(self) -> DataOpError
fn into(self) -> DataOpError
attempt to convert platform specific error to DataOpeation error
Auto Trait Implementations§
impl Freeze for DataOpError
impl RefUnwindSafe for DataOpError
impl Send for DataOpError
impl Sync for DataOpError
impl Unpin for DataOpError
impl UnwindSafe for DataOpError
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