Module error

Module error 

Source
Expand description

Error classification and formatting for user-facing error display.

Maps scylla driver error types to Python cqlsh-compatible error names and strips verbose driver boilerplate to produce clean messages.

Structsยง

ClassifiedError
Classified error with category and cleaned message.

Enumsยง

ErrorCategory
Error categories matching Python cqlsh error display names.

Functionsยง

categorize_db_error ๐Ÿ”’
classify_attempt_error ๐Ÿ”’
classify_error
Classify an anyhow error by walking the chain to find a DbError.
classify_execution_error ๐Ÿ”’
classify_request_error ๐Ÿ”’
clean_db_message ๐Ÿ”’
Clean the reason string from a DbError, stripping driver boilerplate.
format_error
Format a classified error for display matching Python cqlsh output.
format_error_colored
Format a classified error with optional color (red bold when enabled).