public void onBattleError(BattleErrorEvent event) { for (IBattleListener listener : listeners) { try { listener.onBattleError(event); } catch (Throwable ex) { Logger.realErr.println(listener.getClass() + " " + ex.getMessage()); } } }