© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. Scholtz, A. TijmsThe Definitive Guide to Jakarta Faces in Jakarta EE 10https://doi.org/10.1007/978-1-4842-7310-4_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 Jakarta 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 ...

Get The Definitive Guide to Jakarta Faces in Jakarta EE 10: Building Java-Based Enterprise Web Applications 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.