Handling Errors: Advanced Topics in Exceptions

Java JDK 9+    |    Intermediate
  • 6 Videos | 45m 21s
  • 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 course
    use the throw keyword in Java to explicitly throw an exception when the state of the program does not match your own set of valid conditions
    invoke multiple exceptions in your program based on different error conditions
  • throw and handle exceptions at various levels when nested function calls are involved
    define your exception class by extending Java's built-in Exception
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 25s
    UP NEXT
  • Playable
    2. 
    Throwing Exceptions Proactively
    11m 37s
  • Locked
    3. 
    Throwing Multiple Exceptions
    10m 14s
  • Locked
    4. 
    Chaining Exceptions
    8m 36s
  • Locked
    5. 
    Defining Custom Exceptions and Errors
    8m 36s
  • Locked
    6. 
    Course Summary
    1m 52s

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 platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE