C++ provides several ways to handle exceptions. We can do so by handling exceptions using custom code with try, catch and throw keywords. C++ provides custom exceptions (predefined) which we can use and it has std::cerr which is a stream for error outputs