code: public void fireStatementErrorOccured(Statement st, SQLException ex) {
      if (st instanceof PreparedStatement) {
        StatementEvent event = new StatementEvent(this, (PreparedStatement) st, ex);
        for (StatementEventListener listener : statementEventListeners) {
          listener.statementErrorOccurred(event);
        }
      }
    }
docs: Fire statement error to listeners.
  
  @param st statement
  @param ex exception