libstdc++
std::exception Class Reference

#include <exception.h>

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 61 of file exception.h.

Constructor & Destructor Documentation

◆ exception()

std::exception::exception ( )
inlinenoexcept

Definition at line 64 of file exception.h.

Member Function Documentation

◆ what()


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