XmlRpcException.h
Go to the documentation of this file.
1 
2 #ifndef _XMLRPCEXCEPTION_H_
3 #define _XMLRPCEXCEPTION_H_
4 //
5 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
6 //
7 #if defined(_MSC_VER)
8 # pragma warning(disable:4786) // identifier was truncated in debug info
9 #endif
10 
11 #ifndef MAKEDEPEND
12 # include <string>
13 #endif
14 
15 #include "xmlrpcpp/XmlRpcDecl.h"
16 
17 
18 namespace XmlRpc {
19 
24  public:
28  XmlRpcException(const std::string& message, int code=-1) :
29  _message(message), _code(code) {}
30 
32  const std::string& getMessage() const { return _message; }
33 
35  int getCode() const { return _code; }
36 
37  private:
38  std::string _message;
39  int _code;
40  };
41 
42 }
43 
44 #endif // _XMLRPCEXCEPTION_H_
XmlRpc::XmlRpcException::getMessage
const std::string & getMessage() const
Return the error message.
Definition: XmlRpcException.h:32
XmlRpc
Definition: XmlRpcClient.h:20
XmlRpcDecl.h
XmlRpc::XmlRpcException::_code
int _code
Definition: XmlRpcException.h:39
XmlRpc::XmlRpcException::getCode
int getCode() const
Return the error code.
Definition: XmlRpcException.h:35
XmlRpc::XmlRpcException::XmlRpcException
XmlRpcException(const std::string &message, int code=-1)
Definition: XmlRpcException.h:28
XmlRpc::XmlRpcException
Definition: XmlRpcException.h:23
XMLRPCPP_DECL
#define XMLRPCPP_DECL
Definition: XmlRpcDecl.h:52
XmlRpc::XmlRpcException::_message
std::string _message
Definition: XmlRpcException.h:38


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:32