XmlRpcException.h
Go to the documentation of this file.
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 #include "XmlRpcDecl.h"
00016 
00017 
00018 namespace XmlRpc {
00019 
00023   class XMLRPCPP_DECL XmlRpcException {
00024   public:
00028     XmlRpcException(const std::string& message, int code=-1) :
00029         _message(message), _code(code) {}
00030 
00032     const std::string& getMessage() const { return _message; }
00033 
00035     int getCode() const { return _code; }
00036 
00037   private:
00038     std::string _message;
00039     int _code;
00040   };
00041 
00042 }
00043 
00044 #endif  // _XMLRPCEXCEPTION_H_


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley
autogenerated on Tue Mar 7 2017 03:44:43