Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

clawsoft::Exception Class Reference

#include <Exception.h>

Inheritance diagram for clawsoft::Exception:

Inheritance graph
[legend]
Collaboration diagram for clawsoft::Exception:

Collaboration graph
[legend]

Detailed Description

This is the parent class of all the exceptions;.


Public Methods

 Exception ()
 Default constructor.

 Exception (const char *d)
 This constructor assigns to the description the string contained in d.

const char * toString ()
 Displays the description of the exception.

const char * getClassName ()
 Returns the name of the current class.


Protected Methods

void setClassName (const char *n)
 Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.


Protected Attributes

char * description
 Stores the exception's description as a string.


Constructor & Destructor Documentation

clawsoft::Exception::Exception  
 

Default constructor.

clawsoft::Exception::Exception const char *    d
 

This constructor assigns to the description the string contained in d.


Member Function Documentation

const char * clawsoft::Object::getClassName   [inherited]
 

Returns the name of the current class.

void clawsoft::Object::setClassName const char *    n [protected, inherited]
 

Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.

const char * clawsoft::Exception::toString  
 

Displays the description of the exception.


Field Documentation

char* clawsoft::Exception::description [protected]
 

Stores the exception's description as a string.


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

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo