/usr/include/jsonrpccpp/common/exception.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 | /*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file exception.h
* @date 31.12.2012
* @author Peter Spiess-Knafl <peter.knafl@gmail.com>
* @license See attached LICENSE.txt
************************************************************************/
#ifndef JSONRPC_CPP_EXCEPTION_H_
#define JSONRPC_CPP_EXCEPTION_H_
#include <string>
#include <sstream>
#include <exception>
#include "errors.h"
namespace jsonrpc
{
class JsonRpcException: public std::exception
{
public:
JsonRpcException(int code);
JsonRpcException(int code, const std::string& message);
JsonRpcException(int code, const std::string& message, const Json::Value &data);
JsonRpcException(const std::string& message);
virtual ~JsonRpcException() throw ();
int GetCode() const;
const std::string& GetMessage() const;
const Json::Value& GetData() const;
virtual const char* what() const throw ();
private:
int code;
std::string message;
std::string whatString;
Json::Value data;
void setWhatMessage();
};
} /* namespace jsonrpc */
#endif /* JSONRPC_CPP_EXCEPTION_H_ */
|