peerplays-fc/include/fc/json_rpc_error_object.hpp
Daniel Larimer 74709a4983 bug fixes
2012-12-12 11:23:38 -05:00

27 lines
646 B
C++

#pragma once
#include <fc/string.hpp>
#include <fc/optional.hpp>
#include <fc/value.hpp>
#include <fc/reflect.hpp>
namespace fc {
class value;
namespace json {
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;
};
} }
FC_REFLECT( fc::json::error_object, (code)(message)(data) )