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.
25 //--------------------------------------//
26 class MEDEXCEPTION : public std::exception
27 //--------------------------------------//
36 MEDEXCEPTION(const char *text, const char *fileName=0,
37 const unsigned int lineNumber=0 );
38 MEDEXCEPTION(const MEDEXCEPTION &ex );
39 ~MEDEXCEPTION() throw ();
40 friend ostream & operator<< (ostream &os, const MEDEXCEPTION &ex );
41 virtual const char *what(void) const throw () ;
45 //---------------------------------------------------------//
46 class MED_DRIVER_NOT_FOUND_EXCEPTION : public MEDEXCEPTION
47 //---------------------------------------------------------//
50 MED_DRIVER_NOT_FOUND_EXCEPTION(void);
53 MED_DRIVER_NOT_FOUND_EXCEPTION(const char *text, const char *fileName=0,
54 const unsigned int lineNumber=0 );
55 MED_DRIVER_NOT_FOUND_EXCEPTION(const MED_DRIVER_NOT_FOUND_EXCEPTION &ex );
56 ~MED_DRIVER_NOT_FOUND_EXCEPTION() throw();
61 #endif /* MEDEXCEPTION_HXX */