Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

EOutOfMemory Class Reference

#include <Exception.h>

Inheritance diagram for EOutOfMemory:

Exception List of all members.

Detailed Description

The EOutOfMemory exception is thrown if there was not enough free memory for a memory allocation.

Author:
Thomas Jacob

Definition at line 571 of file Exception.h.

Public Member Functions

const char * GetClassName ()
 Returns the name of the class actually instantiated.

long GetLineNumber ()
 Returns the line number of the exception creation.

const char * GetMessage ()
 Returns the exception message.

const char * GetSource ()
 Returns the source file name of the exception creation.


Static Public Member Functions

EOutOfMemoryGet ()
 Returns the single EOutOfMemory object.


Protected Member Functions

void SetMessage (const char *message)
 Sets the exception text.

void SetSource (const char *source)
 Sets the source file name.


Protected Attributes

const char * ClassName
 The name of the class actually instantiated.

long LineNumber
 The line number of the exception creation.

char * Message
 The exception message text.

char * Source
 The source file name of the exception creation.


Private Member Functions

 EOutOfMemory ()
 Creates a new EOutOfMemory.


Static Private Attributes

EOutOfMemory Singleton
 The EOutOfMemory singleton.


Constructor & Destructor Documentation

EOutOfMemory  )  [private]
 

Creates a new EOutOfMemory.

It cannot be instantiates except once by the class itself, because when it is needed, there is no memory to create the exception object. Use the Get() method to get the exception.


Member Function Documentation

EOutOfMemory* Get  )  [inline, static]
 

Returns the single EOutOfMemory object.

Use this method to receive the EOutOfMemory exception to be thrown if a memory allocation fails.

Returns:
The single EOutOfMemory object.

const char* GetClassName  )  [inline, inherited]
 

Returns the name of the class actually instantiated.

Returns:
The name of the class actually instantiated.

long GetLineNumber  )  [inline, inherited]
 

Returns the line number of the exception creation.

Returns:
The line number of the exception creation.

const char* GetMessage  )  [inline, inherited]
 

Returns the exception message.

Returns:
The exception message.

const char* GetSource  )  [inline, inherited]
 

Returns the source file name of the exception creation.

Returns:
The source file name of the exception creation.

void SetMessage const char *  message  )  [protected, inherited]
 

Sets the exception text.

Parameters:
message The new exception text.

void SetSource const char *  source  )  [protected, inherited]
 

Sets the source file name.

Parameters:
source The new source file name.


Member Data Documentation

const char* ClassName [protected, inherited]
 

The name of the class actually instantiated.

Definition at line 172 of file Exception.h.

long LineNumber [protected, inherited]
 

The line number of the exception creation.

This parameter is usually determined by the exception macro.

Definition at line 178 of file Exception.h.

char* Message [protected, inherited]
 

The exception message text.

Definition at line 183 of file Exception.h.

EOutOfMemory Singleton [static, private]
 

The EOutOfMemory singleton.

The EOutOfMemory exception is designed as a singleton, because when it is needed, there is no memory to create the exception object.

Definition at line 580 of file Exception.h.

char* Source [protected, inherited]
 

The source file name of the exception creation.

This parameter is usually determined by the exception macro.

Definition at line 189 of file Exception.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 3 00:23:40 2006 for ToolBox by doxygen 1.3.6