pub enum QueryErrorDetail {
NumericOverflow,
NumericNotRepresentable,
UnsupportedSqlFeature {
feature: SqlFeatureCode,
},
SqlLowering {
reason: SqlLoweringCode,
},
UnsupportedProjection {
reason: QueryProjectionCode,
},
UnknownAggregateTargetField,
ResultShapeMismatch {
reason: QueryResultShapeCode,
},
SqlSurfaceMismatch {
mismatch: SqlSurfaceMismatchCode,
},
SqlWriteBoundary {
boundary: SqlWriteBoundaryCode,
},
SchemaDdlAdmission {
error: SchemaDdlAdmissionError,
},
}Expand description
QueryErrorDetail
Query-origin structured error detail payload.
Variants§
NumericOverflow
NumericNotRepresentable
UnsupportedSqlFeature
Fields
§
feature: SqlFeatureCodeSqlLowering
Fields
§
reason: SqlLoweringCodeUnsupportedProjection
Fields
§
reason: QueryProjectionCodeUnknownAggregateTargetField
ResultShapeMismatch
Fields
§
reason: QueryResultShapeCodeSqlSurfaceMismatch
Fields
§
mismatch: SqlSurfaceMismatchCodeSqlWriteBoundary
Fields
§
boundary: SqlWriteBoundaryCodeSchemaDdlAdmission
Fields
§
error: SchemaDdlAdmissionErrorImplementations§
Source§impl QueryErrorDetail
impl QueryErrorDetail
Sourcepub const fn diagnostic_code(&self) -> DiagnosticCode
pub const fn diagnostic_code(&self) -> DiagnosticCode
Return the compact diagnostic code for this query detail.
Sourcepub const fn diagnostic_detail(&self) -> Option<DiagnosticDetail>
pub const fn diagnostic_detail(&self) -> Option<DiagnosticDetail>
Return compact structured diagnostic detail when the query detail has one.
Trait Implementations§
Source§impl Debug for QueryErrorDetail
impl Debug for QueryErrorDetail
Source§impl Display for QueryErrorDetail
impl Display for QueryErrorDetail
Source§impl Error for QueryErrorDetail
impl Error for QueryErrorDetail
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()
Auto Trait Implementations§
impl Freeze for QueryErrorDetail
impl RefUnwindSafe for QueryErrorDetail
impl Send for QueryErrorDetail
impl Sync for QueryErrorDetail
impl Unpin for QueryErrorDetail
impl UnsafeUnpin for QueryErrorDetail
impl UnwindSafe for QueryErrorDetail
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