Version: 5.1.6

MEDMEM.MEDEXCEPTION Class Reference

#include <MEDMEM_Exception.hxx>

Inheritance diagram for MEDMEM.MEDEXCEPTION:
Inheritance graph

Public Member Functions

 MEDEXCEPTION (void)
 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 ()

Data Fields

char * _text

Friends

ostream & operator<< (ostream &os, const MEDEXCEPTION &ex)

Constructor & Destructor Documentation

MEDEXCEPTION::MEDEXCEPTION ( void   ) 

For internal use only.

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, ASSERT_MED, and NULL.


Member Function Documentation

const char * MEDEXCEPTION::what ( void   )  const throw () [virtual]

Return a char * which contain the message.

References MEDMEM.MEDEXCEPTION._text.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  os,
const MEDEXCEPTION ex 
) [friend]

Field Documentation