Fault Class Reference

#include <Pt/XmlRpc/Fault.h>

XML-RPC fault exception.

Inherits Fault.

Public Types

enum  ErrorCodes {
  ParseError = -32700,
  UnsupportedEncoding = -32701,
  InvalidCharacterForEncoding = -32702,
  InvalidXmlRpc = -32600,
  MethodNotFound = -32601,
  InvalidMethodParameters = -32602,
  InternalXmlRpcError = -32603,
  ApplicationError = -32500,
  SystemError = -32400,
  TransportError = -32300
}
 XML-RPC fault error codes. More...
 

Public Member Functions

 Fault (const std::string &msg, int rc)
 Construct with message and error code.
 
 Fault (const char *msg, int rc)
 Construct with message and error code.
 
 ~Fault () throw ()
 Destructor.
 
int rc () const
 Returns the error code.
 

Member Enumeration Documentation

enum ErrorCodes
Enumerator
ParseError 

XML parse error.

UnsupportedEncoding 

Encoding not supported.

InvalidCharacterForEncoding 

Encoding failure.

InvalidXmlRpc 

Invalid XML-RPC.

MethodNotFound 

Method not found in service.

InvalidMethodParameters 

Invalid method parameters.

InternalXmlRpcError 

Internal error.

ApplicationError 

Application error.

SystemError 

System error.

TransportError 

Transport error.