8 #ifndef DRIPLINE_THROW_REPLY_HH_
9 #define DRIPLINE_THROW_REPLY_HH_
13 #include "member_variables.hh"
45 throw_reply(
const return_code& a_code, scarab::param_ptr_t a_payload_ptr = scarab::param_ptr_t(
new scarab::param()) );
53 template< class x_streamable >
55 throw_reply& operator<<( const std::
string& a_fragment );
58 const std::
string& return_message() const noexcept;
59 std::
string& return_message();
64 const
scarab::param& payload() const noexcept;
66 void set_payload(
scarab::param_ptr_t a_payload );
67 const
scarab::param_ptr_t& get_payload_ptr() const noexcept;
70 mv_referrable_static( std::string, py_throw_reply_keyword );
80 template<
class x_streamable >
83 std::stringstream stream;
Object that can be thrown while processing a request to send a reply.
std::string f_return_message
const return_code & ret_code() const noexcept
const scarab::param_ptr_t & get_payload_ptr() const noexcept
throw_reply & operator<<(x_streamable a_fragment)
const std::string & return_message() const noexcept
scarab::param_ptr_t f_payload
virtual ~throw_reply() noexcept=default
void set_payload(scarab::param_ptr_t a_payload)
throw_reply(throw_reply &&)=default
void set_return_code(const return_code &a_code)
const scarab::param & payload() const noexcept
std::shared_ptr< return_code > f_return_code
Stores a copy of the return-code value, name, and description, either as a custom return-code or copy...
Base class for return codes.