00001 /* ${copyright}$ */ 00002 /* $Id: GeneralException.H 298 2006-02-07 19:19:57Z milena $ */ 00007 #ifndef __GENERAL_EXCEPTION_H__ 00008 #define __GENERAL_EXCEPTION_H__ 00009 00010 #include <string> 00011 00012 #include "libepp_nicbr.H" 00013 00014 using std::string; 00015 00016 LIBEPP_NICBR_NS_BEGIN 00017 00019 class GeneralException 00020 { 00021 public: 00022 00024 00029 GeneralException(const int code, const string &msg, 00030 const string &low_level_msg = "") : 00031 _code(code), _msg(msg), _low_level_msg(low_level_msg) {}; 00032 00034 00037 int get_code() const { return _code; }; 00038 00040 00043 string get_msg() const { return _msg; }; 00044 00046 00049 string get_low_level_msg() const { return _low_level_msg; }; 00050 00051 protected: 00053 int _code; 00054 00056 string _msg; 00057 00059 string _low_level_msg; 00060 }; 00061 00062 LIBEPP_NICBR_NS_END 00063 #endif //__GENERAL_EXCEPTION_H__