Skip to content

Commit 92820f3

Browse files
committed
errors: remove ProtocolError
We have removed the ProtocolError type, which was previously used as a catch-all for various sub-errors and variants. It was something like "I don't know where it belongs, so I'm gonna put it under ProtocolError".
1 parent 9e77cfd commit 92820f3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

scylla/src/errors.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ pub enum ExecutionError {
6969
#[error("No connections in the pool: {0}")]
7070
ConnectionPoolError(#[from] ConnectionPoolError),
7171

72-
/// Protocol error.
73-
#[error("Protocol error: {0}")]
74-
ProtocolError(#[from] ProtocolError),
75-
7672
/// Failed to run a request within a provided client timeout.
7773
#[error(
7874
"Request execution exceeded a client timeout of {}ms",
@@ -153,16 +149,6 @@ pub enum NewSessionError {
153149
UseKeyspaceError(#[from] UseKeyspaceError),
154150
}
155151

156-
/// A protocol error.
157-
///
158-
/// It indicates an inconsistency between CQL protocol
159-
/// and server's behavior.
160-
/// In some cases, it could also represent a misuse
161-
/// of internal driver API - a driver bug.
162-
#[derive(Error, Debug, Clone)]
163-
#[non_exhaustive]
164-
pub enum ProtocolError {}
165-
166152
/// An error that occurred during `USE KEYSPACE <>` request.
167153
#[derive(Error, Debug, Clone)]
168154
#[non_exhaustive]

0 commit comments

Comments
 (0)