Handling Errors: Advanced Topics in Exceptions
Java JDK 9+
- 6 Videos | 43m 39s
- Includes Assessment
- Earns a Badge
While handling exceptions is enough for most programmers, if you are building an app that other developers consume, you should know how to throw exceptions proactively and the various options available in Java in this regard. This is precisely the focus of this course. Learn about throwing an exception based on your conditions in a Java program and how nested function calls influence exception throwing and handling. You'll get a chance to explicitly throw an exception using the throw keyword, add complexity to your code by throwing different exceptions based on different conditions, and build a customized Exception class to define an exception that is not covered by Java's library. Having finished this course, you'll have the knowledge to throw exceptions and run your program without breaking its flow.
WHAT YOU WILL LEARN
discover the key concepts covered in this courseuse the throw keyword in Java to explicitly throw an exception when the state of the program does not match your own set of valid conditionsinvoke multiple exceptions in your program based on different error conditions
throw and handle exceptions at various levels when nested function calls are involveddefine your exception class by extending Java's built-in Exceptionsummarize the key concepts covered in this course
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platformDigital badges are yours to keep, forever.