v.22.5Improvement

Add Extra Diagnostic Info for Exception Handling in ClickHouse

Add extra diagnostic info (if applicable) when sending exception to other server. #36872 (tavplubix).
Added additional diagnostic information when sending exceptions to another server to improve error context and troubleshooting.

Why it matters

This feature enhances the error reporting mechanism by including more detailed diagnostics when exceptions are transmitted between servers. It helps users and operators better understand the root causes of failures and speeds up debugging processes in distributed ClickHouse environments.

How to use it

This behavior is applied automatically when exceptions are sent to other servers. No additional user action is required to enable this enhanced diagnostic information.