Expand description
This module contains various errors which can be returned by Session
.
Re-exports§
pub use crate::client::pager::NextPageError;
pub use crate::client::pager::NextRowError;
pub use crate::response::query_result::FirstRowError;
pub use crate::response::query_result::IntoRowsResultError;
pub use crate::response::query_result::MaybeFirstRowError;
pub use crate::response::query_result::ResultNotRowsError;
pub use crate::response::query_result::RowsError;
pub use crate::response::query_result::SingleRowError;
pub use crate::authentication::AuthError;
Structs§
- Broken
Connection Error - An error indicating that a connection was broken. Possible error reasons:
- Connection
Setup Request Error - An error that occurred during connection setup request execution. It indicates that request needed to initiate a connection failed.
- Deserialization
Error - An error indicating that a failure happened during deserialization.
- Metadata
Fetch Error - An error occurred during metadata fetch.
- Serialization
Error - An error indicating that a failure happened during serialization.
- Type
Check Error - An error indicating that a failure happened during type check.
Enums§
- BadKeyspace
Name - Invalid keyspace name given to
Session::use_keyspace()
- BadQuery
- Error caused by caller creating an invalid statement.
- Broken
Connection Error Kind - A reason why connection was broken.
- Cluster
State Token Error - Error returned from ClusterState APIs.
- Connection
Error - An error that appeared on a connection level. It indicated that connection can no longer be used and should be dropped.
- Connection
Pool Error - An error that occurred when selecting a node connection to perform a request on.
- Connection
Setup Request Error Kind - CqlAuth
Challenge Parse Error - An error type returned when deserialization of AUTH_CHALLENGE response fails.
- CqlAuth
Success Parse Error - An error type returned when deserialization of AUTH_SUCCESS response fails.
- CqlAuthenticate
Parse Error - An error type returned when deserialization of AUTHENTICATE response fails.
- CqlError
Parse Error - An error type returned when deserialization of ERROR response fails.
- CqlEvent
Handling Error - Failed to handle a CQL event received on a stream -1. Possible error kinds are:
- CqlEvent
Parse Error - An error type returned when deserialization of
EVENT
response fails. - CqlRequest
Kind - Possible requests sent by the client.
- CqlRequest
Serialization Error - An error that occurred during CQL request serialization.
- CqlResponse
Kind - Possible CQL responses received from the server
- CqlResponse
Parse Error - An error type returned when deserialization of CQL server response fails.
- CqlResult
Parse Error - An error type returned when deserialization of RESULT response fails.
- CqlSupported
Parse Error - An error type returned when deserialization of SUPPORTED response fails.
- DbError
- An error sent from the database in response to a query as described in the specification\
- Execution
Error - Error that occurred during request execution
- Frame
Body Extensions Parse Error - An error returned by
parse_response_body_extensions
. - Frame
Header Parse Error - An error that occurred during frame header deserialization.
- Keyspace
Strategy Error - An error that occurred during specific keyspace’s metadata fetch.
- Keyspaces
Metadata Error - An error that occurred during keyspaces metadata fetch.
- Metadata
Error - An error that occurred during metadata fetch and verification.
- Metadata
Fetch Error Kind - Specific reason why metadata fetch failed.
- NewSession
Error - Error that occurred during session creation
- Operation
Type - Type of the operation rejected by rate limiting
- Pager
Execution Error - An error that occurred during construction of
QueryPager
. - Peers
Metadata Error - An error that occurred during peers metadata fetch.
- Prepare
Error - An error returned by
Session::prepare()
. - Request
Attempt Error - An error that occurred during a single attempt of:
- Request
Error - An error that occurred during execution of
- Schema
Agreement Error - An error that occurred when awating schema agreement.
- Tables
Metadata Error - An error that occurred during tables metadata fetch.
- TlsError
- A wrapper around a TLS error.
- Tracing
Error - An error that occurred during tracing info fetch.
- Translation
Error - Error caused by failed address translation done before establishing connection
- UdtMetadata
Error - An error that occurred during UDTs metadata fetch.
- UseKeyspace
Error - An error that occurred during
USE KEYSPACE <>
request. - Write
Type - Type of write operation requested