pub enum SqlBuilderError {
FieldMissing(String),
PredicateMissing(String),
JoinMissing(String, String),
MergeMissing(String),
SelectionMissing(String),
RoleRequired(String, String),
FilterInvalid(String),
QueryParamMissing(String),
QueryParamInvalid(String, String),
PredicateArgumentMissing(String),
KeyMismatch(String, String),
PathUnexpected(String),
}
Expand description
Represents all errors from the SQL Builder
Variants
FieldMissing(String)
The field is not mapped to a column or SQL expression. Contains the field name.
PredicateMissing(String)
The field is not mapped to a column or SQL expression. Contains the field name.
JoinMissing(String, String)
The join is not mapped to a column or SQL expression. Contains the join name and the table name.
MergeMissing(String)
The merge is not mapped. Contains the field name.
SelectionMissing(String)
The selection is not known to the mapper. Contains the field name.
RoleRequired(String, String)
The field requires a role that the query does not have. Contains the role and the query_path.
FilterInvalid(String)
The filter expects other arguments. Typically raised by custom functions (FN) if the number of arguments is wrong.
QueryParamMissing(String)
A query expression requires a query parameter, that is not provided. Contains the parameter.
QueryParamInvalid(String, String)
The query parameter that is required by the query expression is wrong. Contains the parameter and the details.
PredicateArgumentMissing(String)
A predicate requires more arguments, than the toql q uery provided, contains the predicate.
KeyMismatch(String, String)
An key cannot be set, because type is wrong or key is composite key
PathUnexpected(String)
A path was found for a selection that only exists in root, such as $all, $mut, $cnt
Trait Implementations
sourceimpl Debug for SqlBuilderError
impl Debug for SqlBuilderError
sourceimpl Display for SqlBuilderError
impl Display for SqlBuilderError
sourceimpl Error for SqlBuilderError
impl Error for SqlBuilderError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<SqlBuilderError> for ToqlError
impl From<SqlBuilderError> for ToqlError
sourcefn from(source: SqlBuilderError) -> Self
fn from(source: SqlBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for SqlBuilderError
impl Send for SqlBuilderError
impl Sync for SqlBuilderError
impl Unpin for SqlBuilderError
impl UnwindSafe for SqlBuilderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more