29 #ifndef Pt_JsonRpc_Fault_h
30 #define Pt_JsonRpc_Fault_h
32 #include <Pt/JsonRpc/Api.h>
33 #include <Pt/Remoting/Fault.h>
34 #include <Pt/SerializationInfo.h>
53 InvalidRequest = -32600,
54 MethodNotFound = -32601,
55 InvalidParameters = -32602,
56 InternalError = -32603,
61 Fault(
const std::string& msg,
int ec);
90 fault = Fault(msg, code);
Core module.
Definition: Allocator.h:33
Remoting fault exception.
Definition: Fault.h:43
Fault(const char *msg, int rc)
Construct with message and error code.
ErrorCodes
JSON-RPC fault error codes.
Definition: Fault.h:51
SerializationInfo & addMember(const std::string &name)
Add a struct member.
Definition: SerializationInfo.h:449
void getString(std::string &s, const TextCodec< Pt::Char, char > &codec) const
Get value as a string.
const SerializationInfo & getMember(const std::string &name) const
Get a struct member.
Definition: SerializationInfo.h:496
void setString(const char *s)
Set to string value.
int code() const
Returns the error code.
Definition: Fault.h:74
~Fault()
Destructor.
Definition: Fault.h:69
Fault(const std::string &msg, int ec)
Construct with message and error code.
int_type int32_t
Signed 32-bit integer type.
Definition: Api-Types.h:41
JSON-RPC fault exception.
Definition: Fault.h:44
Represents arbitrary types during serialization.
Definition: SerializationInfo.h:59