peerplays-fc/include/fc/json_rpc_error_object.hpp

20 lines
465 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-11-12 03:05:49 +00:00
namespace fc { namespace json {
struct error_object {
error_object( const fc::string& msg = fc::string(), fc::value v = fc::value(), int64_t c = -32000);
int64_t code;
fc::string message;
fc::optional<fc::value> data;
};
} }
#include <fc/reflect.hpp>
FC_REFLECT( fc::json::error_object, (code)(message)(data) )