BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
XmlRpc::XmlRpcException Class Reference

#include <XmlRpcException.h>

Public Member Functions

 XmlRpcException (const std::string &message, int code=-1)
 
const std::string & getMessage () const
 Return the error message.
 
int getCode () const
 Return the error 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

◆ XmlRpcException()

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

Constructor

Parameters
messageA descriptive error message
codeAn integer error code

Definition at line 26 of file XmlRpcException.h.

26 :
27 _message(message), _code(code) {}

Member Function Documentation

◆ getCode()

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

Return the error code.

Definition at line 33 of file XmlRpcException.h.

33{ return _code; }

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

◆ getMessage()

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

Return the error message.

Definition at line 30 of file XmlRpcException.h.

30{ return _message; }

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


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