Enum cassandra_cpp::ErrorKind
[−]
pub enum ErrorKind { Msg(String), StringContainsNul(NulError), InvalidUtf8(Utf8Error), CassError(CassErrorCode, String), CassErrorResult(CassErrorCode, String, Consistency, i32, i32, i32, bool, WriteType, Option<String>, Option<String>, Option<(String, Vec<String>)>), UnsupportedType(&'static str, ValueType), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
StringContainsNul(NulError)
Attempted to pass a string containing \0
to Cassandra
InvalidUtf8(Utf8Error)
Attempted to decode an invalid UTF-8-encoded string
CassError(CassErrorCode, String)
Cassandra error.
CassErrorResult(CassErrorCode, String, Consistency, i32, i32, i32, bool, WriteType, Option<String>, Option<String>, Option<(String, Vec<String>)>)
Cassandra error result with extended information.
UnsupportedType(&'static str, ValueType)
Unsupported type encountered.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.