Exception Handling in Java SE
Application stability and reliability are essential to application success. This course will teach you how to use Java exceptions to build stable and reliable Java applications.
What you'll learn
Exceptions are the standard error reporting mechanism in Java, and proper exception handling is critical to creating reliable Java applications. In this course, Exception Handling in Java SE 17, you’ll learn to build stable and reliable Java applications. First, you’ll explore how to improve application stability using try/catch/finally blocks and try-with-resources. Next, you’ll discover the role of checked and unchecked exceptions, how to organize catch blocks, and how to create your own custom exceptions. Finally, you’ll learn how to implement an effective exception handling strategy. When you’re finished with this course, you’ll have the skills and knowledge of Java exceptions needed to build stable and reliable Java applications.
Table of contents
- Introduction 4m
- Exceptions Can Be Handled by Type 3m
- Checked and Unchecked Exceptions 3m
- Checkpoint 01 - Typed Exception 0m
- Handling Multiple Exceptions 4m
- Handling Unchecked Exceptions 2m
- Exceptions and Methods 3m
- Exercise 03 - Handle Multiple Exception Types 0m
- Handling Exceptions Across Methods 3m
- Summary 3m
- Introduction 1m
- Create and Throw an Exception 2m
- Throwing an Exception 4m
- Checkpoint 02 - Throw an Exception 0m
- Custom Exceptions 2m
- Declaring a Custom Exception 2m
- Throwing a Custom Exception 3m
- Chained Exceptions 2m
- Checkpoint 03 - Declare a Custom Exception 0m
- Chaining Exceptions Together 4m
- Accessing a Chained Exception 3m
- Summary 3m
- Exercise 05 - Chain Exceptions 0m
- Introduction 1m
- Exception Handling Organization 3m
- Reorganizing Exception Handling to Maintain App Flow 6m
- Exercise 06 - Positioning Exception Handling 0m
- What to Do with Exception Information 4m
- Displaying User vs. Developer Exception Information 5m
- Do's and Don'ts of Exceptions 4m
- Exercise 07 - Detailed Exception Reporting 0m
- Summary 3m