pub enum BadQuery {
SerializeValuesError(SerializeValuesError),
SerializationError(SerializationError),
ValuesTooLongForKey(usize, usize),
BadKeyspaceName(BadKeyspaceName),
TooManyQueriesInBatchStatement(usize),
Other(String),
}
Expand description
Error caused by caller creating an invalid query
Variants§
SerializeValuesError(SerializeValuesError)
Failed to serialize values passed to a query - values too big
SerializationError(SerializationError)
ValuesTooLongForKey(usize, usize)
Serialized values are too long to compute partition key
BadKeyspaceName(BadKeyspaceName)
Passed invalid keyspace name to use
TooManyQueriesInBatchStatement(usize)
Too many queries in the batch statement
Other(String)
Other reasons of bad query
Trait Implementations§
Source§impl Error for BadQuery
impl Error for BadQuery
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<BadKeyspaceName> for BadQuery
impl From<BadKeyspaceName> for BadQuery
Source§fn from(source: BadKeyspaceName) -> Self
fn from(source: BadKeyspaceName) -> Self
Converts to this type from the input type.
Source§impl From<BadQuery> for NewSessionError
impl From<BadQuery> for NewSessionError
Source§impl From<BadQuery> for QueryError
impl From<BadQuery> for QueryError
Source§impl From<SerializationError> for BadQuery
impl From<SerializationError> for BadQuery
Source§fn from(source: SerializationError) -> Self
fn from(source: SerializationError) -> Self
Converts to this type from the input type.
Source§impl From<SerializeValuesError> for BadQuery
impl From<SerializeValuesError> for BadQuery
Source§fn from(source: SerializeValuesError) -> Self
fn from(source: SerializeValuesError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BadQuery
impl !RefUnwindSafe for BadQuery
impl Send for BadQuery
impl Sync for BadQuery
impl Unpin for BadQuery
impl !UnwindSafe for BadQuery
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