Whole document tree
    

Whole document tree

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

std::runtime_error Class Reference

One of two subclasses of exception. More...

#include <std_stdexcept.h>

Inheritance diagram for std::runtime_error:

Inheritance graph
[legend]
Collaboration diagram for std::runtime_error:

Collaboration graph
[legend]
List of all members.

Public Methods

 runtime_error (const string &__arg)
virtual ~runtime_error () throw ()
virtual const char * what () const throw ()

Private Attributes

string _M_msg

Detailed Description

One of two subclasses of exception.

Runtime errors represent problems outside the scope of a program; they cannot be easily predicted and can generally only be caught as the program executes.

Definition at line 110 of file std_stdexcept.h.


Constructor & Destructor Documentation

std::runtime_error::runtime_error const string   __arg [explicit]
 

Takes a character string describing the error.

Definition at line 60 of file stdexcept.cc.

References std::string.

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

Definition at line 63 of file stdexcept.cc.


Member Function Documentation

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

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

Reimplemented from std::exception.

Definition at line 66 of file stdexcept.cc.


Member Data Documentation

string std::runtime_error::_M_msg [private]
 

Definition at line 112 of file std_stdexcept.h.


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