/** * Set the {@link ExceptionHandler} for this request. * * @param exceptionHandler the <code>ExceptionHandler</code> for this request. */ public void setExceptionHandler(ExceptionHandler exceptionHandler) { if (defaultFacesContext != null) { defaultFacesContext.setExceptionHandler(exceptionHandler); } else { throw new UnsupportedOperationException(); } }