libstdc++
Public Member Functions | List of all members
std::exception Class Reference
Inheritance diagram for std::exception:
[legend]

Public Member Functions

_GLIBCXX26_CONSTEXPR exception (const exception &)=default
 
_GLIBCXX26_CONSTEXPR exception (exception &&)=default
 
_GLIBCXX26_CONSTEXPR exceptionoperator= (const exception &)=default
 
_GLIBCXX26_CONSTEXPR exceptionoperator= (exception &&)=default
 
constexpr 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 61 of file exception.h.

Member Function Documentation

◆ what()

constexpr virtual const char* std::exception::what ( ) const
inlineconstexprvirtualnoexcept

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