#include <Pt/JsonRpc/Fault.h>
JSON-RPC fault exception.
Inherits Fault.
Public Types | |
| enum | ErrorCodes { ParseError = -32700, InvalidRequest = -32600, MethodNotFound = -32601, InvalidParameters = -32602, InternalError = -32603 } |
| JSON-RPC fault error codes. More... | |
Public Member Functions | |
| Fault (const std::string &msg, int ec) | |
| Construct with message and error code. | |
| Fault (const char *msg, int rc) | |
| Construct with message and error code. | |
| ~Fault () throw () | |
| Destructor. | |
| int | code () const |
| Returns the error code. | |
| enum ErrorCodes |
| Enumerator | |
|---|---|
| ParseError |
Parse error. |
| InvalidRequest |
Invalid JSON-RPC. |
| MethodNotFound |
Method not found in service. |
| InvalidParameters |
Invalid method parameters. |
| InternalError |
Internal error. |