621622623624625626627628
LOGGER.fine("Persisted " + o.getClass().getName() + " to " + f.getAbsolutePath() ); } catch( Exception e ) { //catch any exceptions and send them back as CatalogExeptions String msg = "Error persisting " + o + " to " + f.getCanonicalPath(); throw new CatalogException(msg, e); } }
11011102110311041105110611071108110911101111
public boolean throwCatalogException; public void handleAddEvent(CatalogAddEvent event) throws CatalogException { if (throwCatalogException) { throw new CatalogException(); } else { throw new RuntimeException(); } }
13401341134213431344134513461347134813491350
event(event); } protected void event(CatalogEvent event) { CatalogException toThrow = null; for (Iterator l = listeners.iterator(); l.hasNext();) { try { CatalogListener listener = (CatalogListener) l.next(); if (event instanceof CatalogAddEvent) {
13341335133613371338133913401341134213431344
700701702703704705706707
702703704705706707708709
LOGGER.fine("Persisted " + o.getClass().getName() + " to " + r.path() ); } catch( Exception e ) { //catch any exceptions and send them back as CatalogExeptions String msg = "Error persisting " + o + " to " + r.path(); throw new CatalogException(msg, e); } }
21892190219121922193219421952196219721982199
14701471147214731474147514761477147814791480
110111112113114115116117118
jmsPublisher.publish(getTopic(), getJmsTemplate(), options, event); } catch (Exception e) { if (LOGGER.isLoggable(java.util.logging.Level.SEVERE)) { LOGGER.severe(e.getLocalizedMessage()); } final CatalogException ex = new CatalogException(e); throw ex; } }
139140141142143144145146
jmsPublisher.publish(getTopic(), getJmsTemplate(), options, event); } catch (JMSException e) { if (LOGGER.isLoggable(java.util.logging.Level.SEVERE)) { LOGGER.severe(e.getLocalizedMessage()); } throw new CatalogException(e); } }