OverSim
XmlRpcException.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef _XMLRPCEXCEPTION_H_
5 #define _XMLRPCEXCEPTION_H_
6 //
7 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
8 //
9 
15 #if defined(_MSC_VER)
16 # pragma warning(disable:4786) // identifier was truncated in debug info
17 #endif
18 
19 #ifndef MAKEDEPEND
20 # include <string>
21 #endif
22 
23 
24 namespace XmlRpc {
25 
30  public:
34  XmlRpcException(const std::string& message, int code=-1) :
35  _message(message), _code(code) {}
36 
38  const std::string& getMessage() const { return _message; }
39 
41  int getCode() const { return _code; }
42 
43  private:
44  std::string _message;
45  int _code;
46  };
47 
48 }
49 
50 #endif // _XMLRPCEXCEPTION_H_