code: def get_error_code_msg(cls, full_error_message):
          
          for pattern in cls.ERROR_PATTERNS:
              match = pattern.match(full_error_message)
              if match:
                  # assert match.group('type1') == match.group('type2')
                  return int(match.group('code')), match.group('msg').strip()
  
          return 0, full_error_message
docs: 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