QJsonChannelCore
QJsonChannelGlobal.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <QtGlobal>
4
#include <QMetaType>
5
#include "
QJsonChannelCore_export.h
"
6
7
// error codes defined by spec
8
namespace
QJsonChannel
{
9
enum
ErrorCode
{
10
NoError
= 0,
11
ParseError
= -32700,
// Invalid JSON was received by the server.
12
// An error occurred on the server while parsing the JSON text.
13
InvalidRequest
= -32600,
// The JSON sent is not a valid Request object.
14
MethodNotFound
= -32601,
// The method does not exist / is not available.
15
InvalidParams
= -32602,
// Invalid method parameter(s).
16
InternalError
= -32603,
// Internal JSON-RPC error.
17
ServerErrorBase
= -32000,
// Reserved for implementation-defined server-errors.
18
UserError
= -32099,
// Anything after this is user defined
19
TimeoutError
= -32100
20
};
21
}
22
Q_DECLARE_METATYPE(
QJsonChannel::ErrorCode
)
23
24
#define QJsonChannelDebug if (qgetenv("QJsonChannel_DEBUG").isEmpty()); else qDebug
QJsonChannelCore_export.h
QJsonChannel::UserError
Definition:
QJsonChannelGlobal.h:18
QJsonChannel::ErrorCode
ErrorCode
Definition:
QJsonChannelGlobal.h:9
QJsonChannel::ServerErrorBase
Definition:
QJsonChannelGlobal.h:17
QJsonChannel::InternalError
Definition:
QJsonChannelGlobal.h:16
QJsonChannel::InvalidParams
Definition:
QJsonChannelGlobal.h:15
QJsonChannel::MethodNotFound
Definition:
QJsonChannelGlobal.h:14
QJsonChannel::ParseError
Definition:
QJsonChannelGlobal.h:11
QJsonChannel::TimeoutError
Definition:
QJsonChannelGlobal.h:19
QJsonChannel::NoError
Definition:
QJsonChannelGlobal.h:10
QJsonChannel::InvalidRequest
Definition:
QJsonChannelGlobal.h:13
QJsonChannel
Definition:
QJsonChannelGlobal.h:8
src
QJsonChannelGlobal.h
Generated on Thu Mar 14 2019 19:34:12 for QJsonChannelCore by
1.8.15