Whole document tree
    

Whole document tree

std::exception class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::exception Class Reference

Base class for all library exceptions. More...

Inheritance diagram for std::exception:

Inheritance graph
[legend]
List of all members.

Public Methods

 exception () throw ()
virtual ~exception () throw ()
virtual const char * what () const throw ()

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


Constructor & Destructor Documentation

std::exception::exception   throw () [inline]
 

Definition at line 52 of file exception.

std::exception::~exception   throw () [virtual]
 

Definition at line 36 of file eh_exception.cc.


Member Function Documentation

const char * std::exception::what   const throw () [virtual]
 

Returns a C-style character string describing the general cause of the current error.

Reimplemented in std::logic_error, and std::runtime_error.

Definition at line 41 of file eh_exception.cc.


The documentation for this class was generated from the following files:
Generated on Mon Apr 8 03:18:29 2002 for libstdc++-v3 Source by doxygen1.2.15