private void processMessage(final Signal signal) throws ActionException { try { callback.processNotification(signal); } catch (Throwable t) { final String callbackClassName = callback == null ? "<null>" : callback.getClass().getName(); logger.log(Level.WARNING, "msg.action.unhandled.exception", new Object[]{t.getClass().getName(), callbackClassName}); ActionException ae = new ActionException("unhandled exception processing signal " + signal.toString()); ae.initCause(t); throw ae; } } }
private void processMessage(final Signal signal) throws ActionException { try { callback.processNotification(signal); } catch (Throwable t) { final String callbackClassName = callback == null ? "<null>" : callback.getClass().getName(); logger.log(Level.WARNING, "msg.action.unhandled.exception", new Object[]{t.getClass().getName(), callbackClassName}); ActionException ae = new ActionException("unhandled exception processing signal " + signal.toString()); ae.initCause(t); throw ae; } } }
public Object call() throws ActionException { try { action.consumeSignal(signal); } catch (ActionException ae) { // don't wrap an ActionException within an ActionException. throw ae; } catch (Throwable t) { ActionException nae = new ActionException(); nae.initCause(t); throw nae; } return null; } }
public Object call() throws ActionException { try { action.consumeSignal(signal); } catch (ActionException ae) { // don't wrap an ActionException within an ActionException. throw ae; } catch (Throwable t) { ActionException nae = new ActionException(); nae.initCause(t); throw nae; } return null; } }