duException Class Reference

Exception class. More...

#include <decException.h>

Inheritance diagram for duException:
deeDirectoryNotFound deeDirectoryRead deeInvalidFormat deeInvalidSyntax deeNoModuleFound deeScriptError dueAssertion dueDivisionByZero dueFileExists dueFileNotFound dueGeneric dueInvalidAction dueInvalidFileFormat dueInvalidParam dueNullPointer dueOpenFile dueOutOfBoundary dueOutOfMemory dueReadFile dueStackEmpty dueStackOverflow dueTestFailed dueWriteFile

List of all members.

Public Member Functions

Constructors
 duException (const char *name, const char *description, const char *info, const char *file, int line)
 Creates a new exception object.
Accessors
const char * GetName () const
const char * GetDescription () const
const char * GetInfo () const
const char * GetFile () const
int GetLine () const
Tests
bool IsNamed (const char *name) const
 Tests if the exception has the given name.
Display Functions
void PrintError ()
 Displays a formated output of the stored informations.

Detailed Description

Exception class.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

duException::duException ( const char *  name,
const char *  description,
const char *  info,
const char *  file,
int  line 
)

Creates a new exception object.

Parameters:
nameUnique name to identify the exception
descriptionDescription of the reason for the exception
infoAdditional informations helpfull to track the reason for the exception
fileName of the source file where the exception occured
lineLine number in 'file' where the exception occured

Member Function Documentation

const char* duException::GetDescription (  ) const [inline]
const char* duException::GetFile (  ) const [inline]
const char* duException::GetInfo (  ) const [inline]
int duException::GetLine (  ) const [inline]
const char* duException::GetName (  ) const [inline]
bool duException::IsNamed ( const char *  name ) const

Tests if the exception has the given name.

void duException::PrintError (  )

Displays a formated output of the stored informations.


The documentation for this class was generated from the following file: