Example of handling custom exception with declaration <error-page> in web.xml. Example uses filter org.omnifaces.filter.FacesExceptionFilter from Omnifaces to unwrap Custom exception from FacesException and ELException.