BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
XmlRpc::XmlRpcErrorHandler Class Referenceabstract

An interface allowing custom handling of error message reporting. More...

#include <XmlRpc.h>

Inherited by DefaultErrorHandler.

Public Member Functions

virtual void error (const char *msg)=0
 Report an error. Custom error handlers should define this method.
 

Static Public Member Functions

static XmlRpcErrorHandlergetErrorHandler ()
 Returns a pointer to the currently installed error handling object.
 
static void setErrorHandler (XmlRpcErrorHandler *eh)
 Specifies the error handler.
 

Static Protected Attributes

static XmlRpcErrorHandler_errorHandler = &defaultErrorHandler
 

Detailed Description

An interface allowing custom handling of error message reporting.

Definition at line 39 of file XmlRpc.h.

Member Function Documentation

◆ error()

virtual void XmlRpc::XmlRpcErrorHandler::error ( const char *  msg)
pure virtual

Report an error. Custom error handlers should define this method.

Referenced by XmlRpc::XmlRpcUtil::error().

◆ getErrorHandler()

static XmlRpcErrorHandler * XmlRpc::XmlRpcErrorHandler::getErrorHandler ( )
inlinestatic

Returns a pointer to the currently installed error handling object.

Definition at line 42 of file XmlRpc.h.

43 { return _errorHandler; }
static XmlRpcErrorHandler * _errorHandler
Definition: XmlRpc.h:53

Referenced by XmlRpc::XmlRpcUtil::error().

◆ setErrorHandler()

static void XmlRpc::XmlRpcErrorHandler::setErrorHandler ( XmlRpcErrorHandler eh)
inlinestatic

Specifies the error handler.

Definition at line 46 of file XmlRpc.h.

47 { _errorHandler = eh; }

Member Data Documentation

◆ _errorHandler

XmlRpcErrorHandler * XmlRpcErrorHandler::_errorHandler = &defaultErrorHandler
staticprotected

Definition at line 53 of file XmlRpc.h.

Referenced by getErrorHandler(), and setErrorHandler().


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