@Override public void onException(Component component, RuntimeException exception) { for (IValidator<T> validator : validators) { if (validator instanceof Behavior) { ((Behavior)validator).onException(component, exception); } } }
@Override public void onException(Component component, RuntimeException exception) { for (IValidator<T> validator : validators) { if (validator instanceof Behavior) { ((Behavior)validator).onException(component, exception); } } }
public void exception(final Component component, final RuntimeException aException) { for (final Behavior behavior : behaviors_) behavior.onException(component, aException); }
/** * Called when a runtime exception is caught during the render process * * @param ex * The exception caught. */ private void onException(final RuntimeException ex) { // Call each behaviors onException() to allow the // behavior to clean up for (Behavior behavior : getBehaviors()) { if (isBehaviorAccepted(behavior)) { try { behavior.onException(this, ex); } catch (Exception ex2) { log.error("Error while cleaning up after exception", ex2); } } } // Re-throw the exception throw ex; }
/** * Called when a runtime exception is caught during the render process * * @param ex * The exception caught. */ private void onException(final RuntimeException ex) { // Call each behaviors onException() to allow the // behavior to clean up for (Behavior behavior : getBehaviors()) { if (isBehaviorAccepted(behavior)) { try { behavior.onException(this, ex); } catch (Exception ex2) { log.error("Error while cleaning up after exception", ex2); } } } // Re-throw the exception throw ex; }