Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

GAUGE3D::GException Class Reference

Thrown on fatal errors. More...

#include <gauge3d/error.h>

List of all members.

Public Methods

 GException (GString cause,GString file,int line)
virtual ~GException ()
GString Cause ()const
 A human-readable string describing the cause of the error.

GString File ()const
 The source file from which the exception was thrown.

int Line ()const
 The line of the source file from which the exception was thrown.


Detailed Description

Thrown on fatal errors.

See also:
GAUGE3D_FATAL_ERROR

An object of type GException may be thrown when a fatal (i.e. unrecoverable) error occurs. The main function of the program should catch this and output an error.


Constructor & Destructor Documentation

GAUGE3D::GException::GException ( GString cause,
GString file,
int line )
 

Rather than call this, use the macro GAUGE3D_FATAL_ERROR to create and throw an exception.


The documentation for this class was generated from the following file:
Generated at Tue Jan 30 17:07:34 2001 for gauge3d by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000