#include <MyVector.h>
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. |
|
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
|
|
The method to access the message. This might be necessary to compare and ignore the exception. |
|
The method to dump the message on the std err stream.
|