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);
      }
    }
  }
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 ) ; } } }
Fire statement error to listeners.

@param st statement
@param ex exception