/usr/include/jsonrpccpp/common/errors.h is in libjsonrpccpp-dev 0.6.0-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | /*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file errors.h
* @date 31.12.2012
* @author Peter Spiess-Knafl <peter.knafl@gmail.com>
* @license See attached LICENSE.txt
************************************************************************/
#ifndef JSONRPC_CPP_ERRORS_H_
#define JSONRPC_CPP_ERRORS_H_
#include <map>
#include <string>
#include "jsonparser.h"
namespace jsonrpc
{
class JsonRpcException;
class Errors
{
public:
/**
* @return error message to corresponding error code.
*/
static std::string GetErrorMessage(int errorCode);
static class _init
{
public:
_init();
} _initializer;
/**
* Official JSON-RPC 2.0 Errors
*/
static const int ERROR_RPC_JSON_PARSE_ERROR;
static const int ERROR_RPC_METHOD_NOT_FOUND;
static const int ERROR_RPC_INVALID_REQUEST;
static const int ERROR_RPC_INVALID_PARAMS;
static const int ERROR_RPC_INTERNAL_ERROR;
/**
* Server Library Errors
*/
static const int ERROR_SERVER_PROCEDURE_IS_METHOD;
static const int ERROR_SERVER_PROCEDURE_IS_NOTIFICATION;
static const int ERROR_SERVER_PROCEDURE_POINTER_IS_NULL;
static const int ERROR_SERVER_PROCEDURE_SPECIFICATION_NOT_FOUND;
static const int ERROR_SERVER_PROCEDURE_SPECIFICATION_SYNTAX;
static const int ERROR_SERVER_CONNECTOR;
/**
* Client Library Errors
*/
static const int ERROR_CLIENT_CONNECTOR;
static const int ERROR_CLIENT_INVALID_RESPONSE;
private:
static std::map<int, std::string> possibleErrors;
};
} /* namespace jsonrpc */
#endif /* JSONRPC_CPP_ERRORS_H_ */
|