© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. Juneau, L. ManelliJava 17 Recipeshttps://doi.org/10.1007/978-1-4842-7963-2_9

9. Exceptions and Logging

Josh Juneau1   and Luciano Manelli2
(1)
Hinckley, IL, USA
(2)
TARANTO, Taranto, Italy
 

Exceptions are a way of describing exceptional circumstances within a program. They are an indicator that something unexpected (exceptional) has occurred. For that reason, exceptions are efficient at interrupting the current flow of the program and signaling that there is something that requires attention. As such, programs that utilize exceptions judiciously benefit from a better control flow and become more robust and informative for the user. Even so, using exceptions ...

Get Java 17 Recipes: A Problem-Solution Approach 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.