/** * Error handle * * @param handle The handle * @param exception The exception */ void errorHandle(TxLogConnection handle, Exception exception) { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_ERROR_OCCURRED, exception); event.setConnectionHandle(handle); List<ConnectionEventListener> copy = new ArrayList<ConnectionEventListener>(listeners); for (ConnectionEventListener cel : copy) { cel.connectionErrorOccurred(event); } }