libepp_nicbr
GeneralException.H
Go to the documentation of this file.
1 /* ${copyright}$ */
2 /* $Id: GeneralException.H 1086 2010-12-10 13:07:28Z eduardo $ */
7 #ifndef __GENERAL_EXCEPTION_H__
8 #define __GENERAL_EXCEPTION_H__
9 
10 #include <string>
11 
12 #include "libepp_nicbr.H"
13 
14 using std::string;
15 
16 LIBEPP_NICBR_NS_BEGIN
17 
20 {
21 public:
22 
24 
29  GeneralException(const int code, const string &msg,
30  const string &low_level_msg = "") :
31  _code(code), _msg(msg), _low_level_msg(low_level_msg) {};
32 
34 
37  int get_code() const { return _code; };
38 
40 
43  string get_msg() const { return _msg; };
44 
46 
49  string get_low_level_msg() const { return _low_level_msg; };
50 
51 protected:
53  int _code;
54 
56  string _msg;
57 
60 };
61 
62 LIBEPP_NICBR_NS_END
63 #endif //__GENERAL_EXCEPTION_H__
GeneralException(const int code, const string &msg, const string &low_level_msg="")
Constructor.
Definition: GeneralException.H:29
Project defines.
General Exception Class.
Definition: GeneralException.H:19
string get_msg() const
Returns the Exception Message.
Definition: GeneralException.H:43
string get_low_level_msg() const
Return Low Level Error Message.
Definition: GeneralException.H:49
int get_code() const
Returns the Exception Code.
Definition: GeneralException.H:37
int _code
Exception Code.
Definition: GeneralException.H:49
string _msg
Exception Message.
Definition: GeneralException.H:56
string _low_level_msg
Low Level Message.
Definition: GeneralException.H:59