XmlRpc::XmlRpcException Class Reference

#include <XmlRpcException.h>

List of all members.


Detailed Description

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.


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

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 34 of file XmlRpcException.h.

00034                                                            :
00035         _message(message), _code(code) {}


Member Function Documentation

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::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; }


Member Data Documentation

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

Definition at line 44 of file XmlRpcException.h.

Referenced by getMessage().

Definition at line 45 of file XmlRpcException.h.

Referenced by getCode().


The documentation for this class was generated from the following file:

Generated on Wed Mar 25 16:32:55 2009 for OverSim by  doxygen 1.5.5