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_
const std::string & getMessage() const
Return the error message.
XmlRpcException(const std::string &message, int code=-1)
#define XMLRPCPP_DECL
Definition: XmlRpcDecl.h:52
int getCode() const
Return the error code.


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:22