ExceptionHandler
PrimeFaces provides a powerful ExceptionHandler out of the box featuring support for ajax and non-ajax requests, ability to use error-page
configuration in web.xml, an EL extension called to provide information about the exception and the p:ajaxExceptionHandler
component to handle ajax exceptions at the same page.