libstdc++
std::exception Class Reference
Inheritance diagram for std::exception:
[legend]

Public Member Functions

 exception (const exception &)=default
 
 exception (exception &&)=default
 
exceptionoperator= (const exception &)=default
 
exceptionoperator= (exception &&)=default
 
virtual const char * what () const noexcept
 

Detailed Description

Base class for all library exceptions.

This is the base class for all exceptions thrown by the standard library, and by certain language expressions. You are free to derive your own exception classes, or use a different hierarchy, or to throw non-class data (e.g., fundamental types).

Definition at line 60 of file exception.h.

Member Function Documentation

◆ what()

virtual const char* std::exception::what ( ) const
virtualnoexcept

The documentation for this class was generated from the following file: