std::exception

std::exception

Defined in header <exception>
class exception;

Provides consistent interface to handle errors through the throw expression.

All exceptions generated by the standard library inherit from std::exception.