class Exception

This class encapsulates information about an error

Inheritance:

Exception


Public Methods

Exception(const char* s)
creates new exception instance
const char* what()
returns the error description

Protected Fields

const char* message
error description.

Documentation

This class encapsulates information about an error. It should be created and thrown when an error occurres.
Exception was implemented to be the base class for a set of exception classes, but GNUs g++ does not allow to use inheritance by try-throw-catch. So do not make subclasses of this class and use only this for exceptions.
Exception(const char* s)
creates new exception instance
Parameters:
s - string describing the error

const char* what()
returns the error description
Returns:
descrition

const char* message
error description.


Direct child classes:
RuntimeException
LogicException
Author:
Silvia Pfeiffer, Peter Tomczyk
Version:
$Id: error.h,v 1.4 1998/03/26 14:50:01 tomczyk Exp $

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de