Exception Handling in C++
C++ 20
| 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
-
1.Course Overview1m 56sUP NEXT
-
2.Techniques for Propagating Errors6m 46s
-
3.How Exceptions Are Thrown and Handled9m 12s
-
4.Throwing and Handling Exceptions8m 51s
-
5.Defining Multiple Catch Blocks6m
-
6.Handling Exceptions Using the try-catch Block8m 33s
-
7.Throwing Exceptions Using Exception Classes10m 21s
-
8.Creating and Using Custom Exception Classes8m 21s
-
9.Using Custom Exceptions and Catch Blocks10m 44s
-
10.Catching Exceptions by Reference9m 53s
-
11.Violating the noexcept Keyword9m 48s
-
12.Cascading Errors up the Stack Trace5m 44s
-
13.Using the Function-try-block7m 13s
-
14.Course Summary4m 30s
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.