BOSS 8.0.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 20 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 25 of file XmlRpcException.h.

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

Member Function Documentation

◆ getCode()

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

Return the error code.

Definition at line 32 of file XmlRpcException.h.

32{ 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 29 of file XmlRpcException.h.

29{ return _message; }

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


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