pub enum Error {
Io(Error),
Connection(String),
Protocol(String),
Compression(String),
TypeMismatch {
expected: String,
actual: String,
},
Validation(String),
Server {
code: i32,
message: String,
},
NotImplemented(String),
InvalidArgument(String),
BufferOverflow,
Utf8(Utf8Error),
}Expand description
Errors that can occur when using the ClickHouse client.
Variants§
Io(Error)
An I/O error occurred on the underlying TCP or TLS connection.
Connection(String)
Failed to establish a connection to the ClickHouse server.
Protocol(String)
A protocol-level error, such as an unexpected packet type or malformed data from the server.
Compression(String)
An error during LZ4 or ZSTD compression/decompression.
TypeMismatch
A type mismatch between expected and actual column types.
Validation(String)
A validation error, such as mismatched row counts in a block.
Server
An error returned by the ClickHouse server (exception).
NotImplemented(String)
A feature or type that has not been implemented yet.
InvalidArgument(String)
An invalid argument was provided to a function.
BufferOverflow
A write exceeded the available buffer capacity.
Utf8(Utf8Error)
Invalid UTF-8 was encountered when reading a string.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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