//----------------------------------------------------------------------------- // UException.h //----------------------------------------------------------------------------- #ifndef _UEXCEPTION_H #define _UEXCEPTION_H #include #if defined (__BCPLUSPLUS__) #include #else #include #endif using namespace std; //----------------------------------------------------------------------------- // Class UException //----------------------------------------------------------------------------- //@{ /** * This class manages exceptions. Itīs barely an extension of the standard exception, * but it can be initialized with an STL string. Called UException (utils-exception)+ * to avoid conflicts with other classes. */ class UException: public exception { public: /// UException( const string& _msg ): msg( _msg ) { }; /// virtual const char* what() const { return msg.c_str(); }; private: string msg; }; //@} #endif