Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

rdException Class Reference

A class for basic exception functionality. More...

#include <rdException.h>

List of all members.

Public Member Functions

 rdException (const char *aMsg=NULL, const char *aFile=NULL, int aLine=-1)
 Default constructor.

void setMessage (const char *aMsg)
 Set the exception message.

const char * getMessage ()
 Get the exception message.

void print (FILE *aFP)
 Set the exception message.


Static Public Attributes

const int MESSAGE_LENGTH = rdException_MESSAGE_LENGTH

Protected Attributes

char _msg [rdException_MESSAGE_LENGTH]
 A user set message for the exception.

const char * _file
 File in which the error occurred.

int _line
 Line number at which the error occurred.


Private Member Functions

void setNull ()
 Set the member variables to NULL values.


Detailed Description

A class for basic exception functionality.

Version:
1.0
Author:
Frank C. Anderson


Constructor & Destructor Documentation

rdException::rdException const char *  aMsg = NULL,
const char *  aFile = NULL,
int  aLine = -1
 

Default constructor.

Parameters:
aTrueFalse Scientific notation if true, and float if false.


Member Function Documentation

const char * rdException::getMessage  ) 
 

Get the exception message.

Returns:
Message.

void rdException::print FILE *  aFP  ) 
 

Set the exception message.

Parameters:
aMsg Message.

void rdException::setMessage const char *  aMsg  ) 
 

Set the exception message.

Parameters:
aMsg Message.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:10 2003 for Simulation Software by doxygen1.3