6 #ifndef MEDEXCEPTION_HXX
7 #define MEDEXCEPTION_HXX
15 #define LOCALIZED(message) message , __FILE__ , __LINE__
18 #define MED_EXCEPTION MEDEXCEPTION
21 Class used to throws exception.\n
22 Inherits from public exception.
24 //--------------------------------------//
25 class MEDEXCEPTION : public exception
26 //--------------------------------------//
35 MEDEXCEPTION(const char *text, const char *fileName=0,
36 const unsigned int lineNumber=0 );
37 MEDEXCEPTION(const MEDEXCEPTION &ex );
38 ~MEDEXCEPTION() throw ();
39 friend ostream & operator<< (ostream &os, const MEDEXCEPTION &ex );
40 virtual const char *what(void) const throw () ;
44 //---------------------------------------------------------//
45 class MED_DRIVER_NOT_FOUND_EXCEPTION : public MEDEXCEPTION
46 //---------------------------------------------------------//
49 MED_DRIVER_NOT_FOUND_EXCEPTION(void);
52 MED_DRIVER_NOT_FOUND_EXCEPTION(const char *text, const char *fileName=0,
53 const unsigned int lineNumber=0 );
54 MED_DRIVER_NOT_FOUND_EXCEPTION(const MED_DRIVER_NOT_FOUND_EXCEPTION &ex );
55 ~MED_DRIVER_NOT_FOUND_EXCEPTION() throw();
59 #endif /* MEDEXCEPTION_HXX */