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

MyMath::MyMathException Class Reference

#include <MyVector.h>

List of all members.


Detailed Description

The Exception class for the MyMath namespace.

This is the general Exception class. It is thrown by the Vector class under appropiate cases.

Definition at line 20 of file MyVector.h.

Public Member Functions

 MyMathException (std::string _mesg)
 The constructor for this class.

std::string giveMessage ()
 The method to access the message.

void printMessage ()
 The method to dump the message on the std err stream.


Constructor & Destructor Documentation

MyMath::MyMathException::MyMathException std::string  _mesg  ) 
 

The constructor for this class.

Note that we have intentionally left out the default constructor to ensure some message is given by the lazy coder when an exception happens. This method accepts as argument

Parameters:
_mesg the message of the exception.


Member Function Documentation

std::string MyMath::MyMathException::giveMessage  ) 
 

The method to access the message.

This might be necessary to compare and ignore the exception.

void MyMath::MyMathException::printMessage  ) 
 

The method to dump the message on the std err stream.


The documentation for this class was generated from the following file:
Generated on Fri Aug 6 01:53:21 2004 for MyMath by doxygen 1.3.6