In this chapter, you will learn:
About error handling in Java using exceptions
How to use try-catch blocks to handle exceptions
How to use finally blocks to clean up resources
The difference between checked and unchecked exceptions
How to create a new exception type and use it in your program
How to use auto-closeable resources using a try-catch-resources block
How to access the stack frames of a thread
How to get the class name of the caller of a method
All classes in this chapter are a member of a jdojo.exception module, as declared in Listing 13-1.