pub enum QueryExecErr {
EmptyQuery,
InternalError(String),
Serialization(String),
}
Expand description
An enum representing a runtime error given a correctly-parsed query.
Variants§
EmptyQuery
You gave us a query that has no fields or array accesses in it. Just call serde_json::to_value instead of going through the query API!
InternalError(String)
Basically a panic; please open a github issue, with data if possible!
Serialization(String)
Since we’re currently implementing a serde Serializer to run the queries, we need a catch-all for custom errors, e.g., in user-specified serialization targets.
Trait Implementations§
Source§impl Debug for QueryExecErr
impl Debug for QueryExecErr
Source§impl<'de> Deserialize<'de> for QueryExecErr
impl<'de> Deserialize<'de> for QueryExecErr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for QueryExecErr
impl Display for QueryExecErr
Source§impl Error for QueryExecErr
impl Error for QueryExecErr
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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Error for QueryExecErr
impl Error for QueryExecErr
Source§impl From<Error> for QueryExecErr
impl From<Error> for QueryExecErr
Source§impl PartialEq for QueryExecErr
impl PartialEq for QueryExecErr
Source§impl Serialize for QueryExecErr
impl Serialize for QueryExecErr
impl Eq for QueryExecErr
impl StructuralPartialEq for QueryExecErr
Auto Trait Implementations§
impl Freeze for QueryExecErr
impl RefUnwindSafe for QueryExecErr
impl Send for QueryExecErr
impl Sync for QueryExecErr
impl Unpin for QueryExecErr
impl UnwindSafe for QueryExecErr
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