#ifndef ERROR_H #define ERROR_H #include #include #include using namespace std; class Error : public runtime_error { public: Error ( const string & function, const string & msg, const error_t error = ENOTRECOVERABLE ); virtual ~Error ( ) throw ( ); inline string getFunction ( ) const { return mFunction; } inline error_t getErrno ( ) const { return mErrorId; } inline string getMessage ( ) const { return what(); } void display ( ) const; private: error_t mErrorId; string mFunction; }; #endif // ERROR_H