#[non_exhaustive]pub enum ClickHouseError {
Show 98 variants
EngineRequired,
TooLargeSizeCompressed,
UnknownType,
DuplicateColumn,
NoSuchColumnInTable,
SizesOfColumnsDoesntMatch,
NumberOfColumnsDoesntMatch,
UnexpectedEOF,
UnknownDatabase,
UnknownTable,
UnknownCompressionMethod,
SyntaxError,
CannotBlockSignal,
CannotUnblockSignal,
CannotManipulateSigset,
CannotWaitForSignal,
ThereIsNoSession,
CannotClockGettime,
UnknownSetting,
CannotParseText,
CannotParseEscapeSequence,
CannotParseQuotedString,
CannotParseInputAssertionFailed,
CannotParseDate,
CannotParseDateTime,
CannotParseNumber,
CannotParseDomainValue,
CannotParseBool,
ThereIsNoColumn,
NotFoundColumnInBlock,
SizeOfFixedStringDoesntMatch,
CannotReadAllData,
IncorrectData,
IncorrectElementOfSet,
CorruptedData,
SizesOfArraysDontMatch,
ValueOutOfRangeOfDataType,
TooLargeStringSize,
DecimalOverflow,
EmptyDataPassed,
NoDataToInsert,
BadArguments,
IllegalTypeOfArgument,
TooManyArgumentsForFunction,
TooFewArgumentsForFunction,
UnknownFunction,
UnknownIdentifier,
TypeMismatch,
Readonly,
TableIsReadOnly,
QueryIsTooLarge,
EmptyQuery,
TableIsDropped,
DatabaseNotEmpty,
UnknownFormat,
TableAlreadyExists,
DatabaseAlreadyExists,
LimitExceeded,
TimeoutExceeded,
TooManyRows,
TooManyColumns,
TooDeepSubqueries,
MemoryLimitExceeded,
UnknownAggregatedDataVariant,
QueryWasCancelled,
SetSizeLimitExceeded,
InvalidLimitExpression,
ChecksumDoesntMatch,
UnknownPacketFromClient,
UnknownPacketFromServer,
UnexpectedPacketFromClient,
UnexpectedPacketFromServer,
TooSmallBufferSize,
CannotReadFromSocket,
CannotWriteToSocket,
SocketTimeout,
NetworkError,
ClientConnectedToWrongPort,
ProtocolVersionMismatch,
UnknownUser,
WrongPassword,
RequiredPassword,
IpAddressNotAllowed,
AccessDenied,
NotEnoughSpace,
CannotAllocateMemory,
CannotMremap,
CannotMunmap,
Aborted,
NotImplemented,
LogicalError,
ServerOverloaded,
IllegalSyntaxForDataType,
IllegalSyntaxForCodecType,
InvalidTemplateFormat,
MultipleExpressionsForAlias,
Other(String),
Unknown,
}Expand description
Common error codes mapped to concrete errors. Can be updated as needed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EngineRequired
TooLargeSizeCompressed
UnknownType
DuplicateColumn
NoSuchColumnInTable
SizesOfColumnsDoesntMatch
NumberOfColumnsDoesntMatch
UnexpectedEOF
UnknownDatabase
UnknownTable
UnknownCompressionMethod
SyntaxError
CannotBlockSignal
CannotUnblockSignal
CannotManipulateSigset
CannotWaitForSignal
ThereIsNoSession
CannotClockGettime
UnknownSetting
CannotParseText
CannotParseEscapeSequence
CannotParseQuotedString
CannotParseInputAssertionFailed
CannotParseDate
CannotParseDateTime
CannotParseNumber
CannotParseDomainValue
CannotParseBool
ThereIsNoColumn
NotFoundColumnInBlock
SizeOfFixedStringDoesntMatch
CannotReadAllData
IncorrectData
IncorrectElementOfSet
CorruptedData
SizesOfArraysDontMatch
ValueOutOfRangeOfDataType
TooLargeStringSize
DecimalOverflow
EmptyDataPassed
NoDataToInsert
BadArguments
IllegalTypeOfArgument
TooManyArgumentsForFunction
TooFewArgumentsForFunction
UnknownFunction
UnknownIdentifier
TypeMismatch
Readonly
TableIsReadOnly
QueryIsTooLarge
EmptyQuery
TableIsDropped
DatabaseNotEmpty
UnknownFormat
TableAlreadyExists
DatabaseAlreadyExists
LimitExceeded
TimeoutExceeded
TooManyRows
TooManyColumns
TooDeepSubqueries
MemoryLimitExceeded
UnknownAggregatedDataVariant
QueryWasCancelled
SetSizeLimitExceeded
InvalidLimitExpression
ChecksumDoesntMatch
UnknownPacketFromClient
UnknownPacketFromServer
UnexpectedPacketFromClient
UnexpectedPacketFromServer
TooSmallBufferSize
CannotReadFromSocket
CannotWriteToSocket
SocketTimeout
NetworkError
ClientConnectedToWrongPort
ProtocolVersionMismatch
UnknownUser
WrongPassword
RequiredPassword
IpAddressNotAllowed
AccessDenied
NotEnoughSpace
CannotAllocateMemory
CannotMremap
CannotMunmap
Aborted
NotImplemented
LogicalError
ServerOverloaded
IllegalSyntaxForDataType
IllegalSyntaxForCodecType
InvalidTemplateFormat
MultipleExpressionsForAlias
Other(String)
Unknown
Trait Implementations§
Source§impl Clone for ClickHouseError
impl Clone for ClickHouseError
Source§fn clone(&self) -> ClickHouseError
fn clone(&self) -> ClickHouseError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClickHouseError
impl Debug for ClickHouseError
Source§impl Display for ClickHouseError
impl Display for ClickHouseError
Source§impl Error for ClickHouseError
impl Error for ClickHouseError
1.30.0 · 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 Freeze for ClickHouseError
impl RefUnwindSafe for ClickHouseError
impl Send for ClickHouseError
impl Sync for ClickHouseError
impl Unpin for ClickHouseError
impl UnwindSafe for ClickHouseError
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