© Bauke Scholtz, Arjan Tijms 2018
Bauke Scholtz and Arjan TijmsThe Definitive Guide to JSF in Java EE 8https://doi.org/10.1007/978-1-4842-3387-0_9

9. Exception Handling

Bauke Scholtz1  and Arjan Tijms2
(1)
Willemstad, Curaçao
(2)
Amsterdam, Noord-Holland, The Netherlands
 
Sometimes things can unexpectedly go wrong. In Java, that usually manifests as an Exception being thrown. In Java EE, it’s basically no different. The issue is how and when to properly handle them. By default, any uncaught exception during an HTTP request will end up in a default error page provided by the application server. Figure 9-1 shows what WildFly’s default HTTP 500 error page looks like:
Figure 9-1

The default HTTP 500 error page of WildFly 11.0.0

The JSF (JavaServer Faces) ...

Get The Definitive Guide to JSF in Java EE 8: Building Web Applications with JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.