#include <MEDMEM_Exception.hxx>

Public Member Functions | |
| MEDEXCEPTION (const char *text, const char *fileName=0, const unsigned int lineNumber=0) | |
| MEDEXCEPTION (const MEDEXCEPTION &ex) | |
| ~MEDEXCEPTION () throw () | |
| virtual const char * | what (void) const throw () |
Protected Attributes | |
| char * | _text |
Private Member Functions | |
| MEDEXCEPTION (void) | |
Friends | |
| ostream & | operator<< (ostream &os, const MEDEXCEPTION &ex) |
| MEDEXCEPTION::MEDEXCEPTION | ( | void | ) | [private] |
Default Constructor (Should not be used)
References INTERRUPTION_MED, and MESSAGE_MED.
| MEDEXCEPTION::MEDEXCEPTION | ( | const char * | text, |
| const char * | fileName = 0, |
||
| const unsigned int | lineNumber = 0 |
||
| ) |
Constructor :
It will create the text of the MEDEXCEPTION from the different parameters. It will take the form :
MEDEXCEPTION, fileName, lineNumber and text of the exception
References MEDMEM.MEDEXCEPTION._text, and MESSAGE_MED.
| MEDEXCEPTION::MEDEXCEPTION | ( | const MEDEXCEPTION & | ex | ) |
Copy Constructor :
Should not be used very often
| MEDEXCEPTION::~MEDEXCEPTION | ( | ) | throw () |
Destructor :
If necessary desallocates Memory
References MEDMEM.MEDEXCEPTION._text, and ASSERT_MED.
| const char * MEDEXCEPTION::what | ( | void | ) | const throw () [virtual] |
Return a char * which contain the message.
References MEDMEM.MEDEXCEPTION._text.
| ostream& operator<< | ( | ostream & | os, |
| const MEDEXCEPTION & | ex | ||
| ) | [friend] |
char* MEDMEM.MEDEXCEPTION._text [protected] |