5.6.3. Standard Exceptions
The C++ library defines several classes that it uses to report problems encountered in the functions in the standard library. These exception classes are also intended to be used in the programs we write. These classes are defined in four headers:
exception header defines the most general kind of exception class named
exception. It communicates only that an exception occurred but provides no additional information.
stdexcept header defines several general-purpose exception classes, which are listed in Table 5.1.
new header defines the