XmlRpc::XmlRpcException Class Reference

#include <XmlRpcException.h>

List of all members.

Public Member Functions

 XmlRpcException (const std::string &message, int code=-1)
const std::stringgetMessage () const
 Return the error message.
int getCode () const
 Return the error code.

Private Attributes

std::string _message
int _code


Detailed Description

A class representing an error. If server methods throw this exception, a fault response is returned to the client.

Definition at line 21 of file XmlRpcException.h.


Constructor & Destructor Documentation

XmlRpc::XmlRpcException::XmlRpcException ( const std::string message,
int  code = -1 
) [inline]

Constructor

Parameters:
message A descriptive error message
code An integer error code

Definition at line 26 of file XmlRpcException.h.

00026                                                            :
00027         _message(message), _code(code) {}


Member Function Documentation

int XmlRpc::XmlRpcException::getCode (  )  const [inline]

Return the error code.

Definition at line 33 of file XmlRpcException.h.

References _code.

Referenced by XmlRpc::XmlRpcServerConnection::executeMulticall(), and XmlRpc::XmlRpcServerConnection::executeRequest().

00033 { return _code; }

const std::string& XmlRpc::XmlRpcException::getMessage (  )  const [inline]

Return the error message.

Definition at line 30 of file XmlRpcException.h.

References _message.

Referenced by XmlRpc::XmlRpcServerConnection::executeMulticall(), and XmlRpc::XmlRpcServerConnection::executeRequest().

00030 { return _message; }


Member Data Documentation

int XmlRpc::XmlRpcException::_code [private]

Definition at line 37 of file XmlRpcException.h.

Referenced by getCode().

std::string XmlRpc::XmlRpcException::_message [private]

Definition at line 36 of file XmlRpcException.h.

Referenced by getMessage().


Generated on Tue Nov 29 23:36:39 2016 for BOSS_7.0.2 by  doxygen 1.4.7