A class representing an error. More...
#include <XmlRpcException.h>
Public Member Functions | |
XmlRpcException (const std::string &message, int code=-1) | |
Constructor. | |
const std::string & | getMessage () const |
Return the error message. | |
int | getCode () const |
Return the error code. | |
Private Attributes | |
std::string | _message |
int | _code |
A class representing an error.
If server methods throw this exception, a fault response is returned to the client.
Definition at line 29 of file XmlRpcException.h.
XmlRpc::XmlRpcException::XmlRpcException | ( | const std::string & | message, | |
int | code = -1 | |||
) | [inline] |
Constructor.
message | A descriptive error message | |
code | An integer error code |
Definition at line 34 of file XmlRpcException.h.
int XmlRpc::XmlRpcException::getCode | ( | ) | const [inline] |
Return the error code.
Definition at line 41 of file XmlRpcException.h.
Referenced by XmlRpc::XmlRpcServer::executeMulticall(), and XmlRpc::XmlRpcServer::executeRequest().
00041 { return _code; }
const std::string& XmlRpc::XmlRpcException::getMessage | ( | ) | const [inline] |
Return the error message.
Definition at line 38 of file XmlRpcException.h.
Referenced by XmlRpc::XmlRpcServer::executeMulticall(), and XmlRpc::XmlRpcServer::executeRequest().
00038 { return _message; }
int XmlRpc::XmlRpcException::_code [private] |
Definition at line 45 of file XmlRpcException.h.
Referenced by getCode().
std::string XmlRpc::XmlRpcException::_message [private] |
Definition at line 44 of file XmlRpcException.h.
Referenced by getMessage().