v.21.9Improvement

Add Error IDs to Exception Messages

Add error id (like BAD_ARGUMENTS) to exception messages. This closes #25862. #26172 (alexey-milovidov).
Add error identifiers (e.g., BAD_ARGUMENTS) to exception messages in ClickHouse.

Why it matters

This feature improves error handling by providing standardized error codes alongside exception messages, making it easier to diagnose and handle specific errors programmatically.

How to use it

Error IDs are automatically included in exception messages starting from this version. Users can refer to these error codes in logs and error handling routines without any additional configuration.