00001 00002 #ifndef _XMLRPCEXCEPTION_H_ 00003 #define _XMLRPCEXCEPTION_H_ 00004 // 00005 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley 00006 // 00007 #if defined(_MSC_VER) 00008 # pragma warning(disable:4786) // identifier was truncated in debug info 00009 #endif 00010 00011 #ifndef MAKEDEPEND 00012 # include <string> 00013 #endif 00014 00015 00016 namespace XmlRpc { 00017 00021 class XmlRpcException { 00022 public: 00026 XmlRpcException(const std::string& message, int code=-1) : 00027 _message(message), _code(code) {} 00028 00030 const std::string& getMessage() const { return _message; } 00031 00033 int getCode() const { return _code; } 00034 00035 private: 00036 std::string _message; 00037 int _code; 00038 }; 00039 00040 } 00041 00042 #endif // _XMLRPCEXCEPTION_H_