Please enable JavaScript to use CodeHS

Data Structures in C++

Lesson 2.5 Error Handling

Description

In this lesson, students will learn how to write try/catch statements to handle built-in errors as well as catch custom errors in order to have programs run efficiently and enhance user experiences.


Objective

Students will be able to:

  • Write try/catch statements
  • Catch standard C++ errors
  • Throw and catch custom errors