6 #ifndef MEDEXCEPTION_HXX
7 #define MEDEXCEPTION_HXX
15 #define LOCALIZED(message) message , __FILE__ , __LINE__
18 #define MED_EXCEPTION MEDEXCEPTION
19 class MEDEXCEPTION : public exception
28 MEDEXCEPTION(const char *text, const char *fileName=0,
29 const unsigned int lineNumber=0 );
30 MEDEXCEPTION(const MEDEXCEPTION &ex );
31 ~MEDEXCEPTION() throw ();
32 friend ostream & operator<< (ostream &os, const MEDEXCEPTION &ex );
33 virtual const char *what(void) const throw () ;
37 class MED_DRIVER_NOT_FOUND_EXCEPTION : public MEDEXCEPTION
40 MED_DRIVER_NOT_FOUND_EXCEPTION(void);
43 MED_DRIVER_NOT_FOUND_EXCEPTION(const char *text, const char *fileName=0,
44 const unsigned int lineNumber=0 );
45 MED_DRIVER_NOT_FOUND_EXCEPTION(const MED_DRIVER_NOT_FOUND_EXCEPTION &ex );
46 ~MED_DRIVER_NOT_FOUND_EXCEPTION() throw();
50 #endif /* MEDEXCEPTION_HXX */