Exception Handling in C++
C++
| Intermediate
- 14 videos | 1h 47m 52s
- Includes Assessment
- Earns a Badge
Exceptions are the most popular form of error handling and the try-catch block is superior to all other error handling mechanisms because it forces the invoking function to manage the errors. In this course, learn how exceptions are thrown and caught. Next, practice creating and using custom exception objects and discover why exceptions must be caught by reference. Finally, explore object slicing results, the semantics and limitations of the noexcept keyword, and the pitfalls of exceptions that occur within constructors. Upon completion, you'll be able to correctly throw and handle exceptions using try/catch blocks, enumerate semantics and limitations of the noexcept keyword, and mitigate problems related to exceptions thrown during the construction of an object.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseRecognize methods for propagating errors in codeRecall how exceptions can be thrown and handledThrow and handle exceptionsDefine multiple catch blocks to handle exceptionsHandle exceptions using the try-catch blockThrow exceptions using exception classes
-
Create and use custom exception classesUse custom exceptions and catch blocksRecall why exceptions must be caught by referenceViolate the noexcept keywordCascade errors up the stack traceUse the function-try-block to clean up resourcesSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 56s
-
6m 46s
-
9m 12s
-
8m 51s
-
6m
-
8m 33s
-
10m 21s
-
8m 21s
-
10m 44s
-
9m 53s
-
9m 48s
-
5m 44s
-
7m 13s
-
4m 30s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.