4 #ifndef _iqxmlrpc_except_h_
5 #define _iqxmlrpc_except_h_
7 #include "api_export.h"
19 #pragma warning(disable: 4275)
23 class LIBIQXMLRPC_API
Exception:
public std::runtime_error {
27 Exception(
const std::string& i,
int c = -32000 ):
28 runtime_error( i ), ex_code(c) {}
30 virtual int code()
const {
return ex_code; }
41 Exception(std::string(
"Parser error. ") += d, -32700) {}
48 Exception(std::string(
"XML build error. ") += d, -32705) {}
53 #pragma warning(disable: 4275)
60 Exception(
"Server error. XML-RPC violation.", -32600) {}
63 Exception(std::string(
"Server error. XML-RPC violation: ") += s, -32600) {}
71 Exception((std::string(
"Server error. Method '") += name) +=
"' not found.", -32601) {}
78 Exception(
"Server error. Invalid method parameters.", -32602 ) {}
85 Fault(
int c,
const std::string& s ):
Invalid method parameters exception.
Definition: except.h:75
XML Parser error.
Definition: except.h:38
XML-RPC structures not conforming to spec.
Definition: except.h:57
XML-RPC library.
Definition: auth_plugin.cc:6
Base class for iqxmlrpc exceptions.
Definition: except.h:23
XML Parser error.
Definition: except.h:45