docs: public static void checkConnectionException(SQLException exception,
        MariaDbConnection connection) {
      if (exception.getSQLState() != null) {
        SqlStates state = SqlStates.fromString(exception.getSQLState());
        if (SqlStates.CONNECTION_EXCEPTION.equals(state)) {
          connection.setHostFailed();
          if (connection.pooledConnection != null) {
            connection.pooledConnection.fireConnectionErrorOccured(exception);
          }
        }
      }
    }