XmlRpcException.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 #ifndef _XMLRPCEXCEPTION_H_
00005 #define _XMLRPCEXCEPTION_H_
00006 //
00007 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
00008 //
00009 
00015 #if defined(_MSC_VER)
00016 # pragma warning(disable:4786)    // identifier was truncated in debug info
00017 #endif
00018 
00019 #ifndef MAKEDEPEND
00020 # include <string>
00021 #endif
00022 
00023 
00024 namespace XmlRpc {
00025 
00029   class XmlRpcException {
00030   public:
00034     XmlRpcException(const std::string& message, int code=-1) :
00035         _message(message), _code(code) {}
00036 
00038     const std::string& getMessage() const { return _message; }
00039 
00041     int getCode() const { return _code; }
00042 
00043   private:
00044     std::string _message;
00045     int _code;
00046   };
00047 
00048 }
00049 
00050 #endif  // _XMLRPCEXCEPTION_H_
Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3