peerplays-fc/include/fc/json_rpc_error_object.hpp

28 lines
646 B
C++
Raw Normal View History

2012-11-12 03:05:49 +00:00
#pragma once
2012-11-15 16:55:36 +00:00
#include <fc/string.hpp>
#include <fc/optional.hpp>
#include <fc/value.hpp>
2012-12-12 16:23:38 +00:00
#include <fc/reflect.hpp>
2012-11-12 03:05:49 +00:00
2012-12-12 16:23:38 +00:00
namespace fc {
class value;
2012-11-12 03:05:49 +00:00
2012-12-12 16:23:38 +00:00
namespace json {
2012-11-12 03:05:49 +00:00
2012-12-12 16:23:38 +00:00
class error_object {
public:
error_object( const fc::string& msg, const fc::value& v , int64_t c = -32000);
error_object( const fc::string& msg=fc::string(), int64_t c = -32000 );
error_object( const error_object& e );
~error_object();
int64_t code;
fc::string message;
fc::optional<fc::value> data;
2012-11-12 03:05:49 +00:00
};
} }
FC_REFLECT( fc::json::error_object, (code)(message)(data) )