libstdc++
std::exception Class Reference

#include <exception.h>

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
 
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.

Constructor & Destructor Documentation

◆ exception()

_GLIBCXX26_CONSTEXPR std::exception::exception ( )
inlinenoexcept

Definition at line 64 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: