C++ Exceptions Handling

Udemy Certificate USD 34.99
Enroll now →
C++ Exceptions Handling

About this course

While writing and running software, sooner or later exceptions or some other form of errors are unavoidable, whether expected or not, resulting from issues in our code or user actions, etc. Hence, we must be prepared for exceptions / errors and know how to handle them properly (whether gracefully or failing fast) to recover from or at least not exacerbate problems in our programs, including those written in languages like C++.So, if you’ve just learned the basics of C++ and haven’t dived into exceptions yet or worked with C++ for a while but need to brush up on exceptions, then this course is for you. It’s about exceptions handling in C++, including theory, syntax and best practices. The course covers C++ standards 11-17.By the end of this course you will learnThrowing and catching exceptions and their limitations;Stack unwinding;Pitfalls when throwing in constructors and destructors;Re-throwing and nested exceptions;User-defined and standard exceptions;Dynamic exceptions specification;Noexcept specifier and noexcept operator;Recommendations on error handling from C++ Core Guidelines.Moreover, and probably most importantly, you will learn how to reason about exception safety of your code and exception safety guarantees, a concept that will help you write robust code in C++ and other similar languages.So what exactly is covered in the course?Lectures with code examples and explanations;Summaries in PDF files from each lecture for those who prefer reading and to be able to quickly to back to specific topics and recap;References to relevant C++ Core Guidelines about error handling;Quizzes with questions to check your

What you'll learn

  • Throwing and catching exceptions and understanding their limitations
  • Managing stack unwinding and its significance
  • Identifying pitfalls when throwing exceptions in constructors and destructors
  • Re-throwing and handling nested exceptions
  • Using user-defined and standard exceptions effectively
  • Implementing dynamic exception specifications
  • Applying noexcept specifier and operator
  • Following recommendations from C++ Core Guidelines for error handling

Course objectives

  • To equip learners with the knowledge to handle exceptions gracefully in their code
  • To teach reasoning about exception safety and guarantees

Skills you'll gain

Related courses

Course details are provided by the platform and may change — always confirm on the provider's site. Links may be affiliate links.