@classmethod<EOL><INDENT>def get_error_code_msg(cls, full_error_message):<DEDENT>
for pattern in cls.ERROR_PATTERNS:<EOL><INDENT>match = pattern.match(full_error_message)<EOL>if match:<EOL><INDENT>return int(match.group('<STR_LIT:code>')), match.group('<STR_LIT>').strip()<EOL><DEDENT><DEDENT>return <NUM_LIT:0>, full_error_message<EOL>
Extract the code and message of the exception that clickhouse-server generated.

See the list of error codes here:
https://github.com/yandex/ClickHouse/blob/master/dbms/src/Common/ErrorCodes.cpp