Understanding C++ Exception Handling
Deep Understanding of Exception Class Hierarchy The C++ Standard Library provides a rich set of exception classes that form a hierarchy. std::exception is the base class for all exception classes, defining a virtual function what() to return a string describing the exception. For example: #include <iostream> #include <exception> int main() { try { throw std::exception(); … Read more