aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/deps/rpclib/include/rpc/this_handler.inl
blob: cca37caec2cde1362e0ec5659d4937edcac03f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace rpc {

template <typename T> void this_handler_t::respond_error(T &&err_obj) {
    error_ = detail::pack(std::forward<T>(err_obj));
    throw detail::handler_error();
}

template <typename T> void this_handler_t::respond(T &&resp_obj) {
    resp_ = detail::pack(std::forward<T>(resp_obj));
    //throw detail::handler_spec_response();
}

} /* rpc */