12#include <system_error>
16#pragma warning(disable : 4251)
21struct extended_error_t;
22struct message_stringifier_t;
53 : context{context_}, ec{ec_}, next{next_}, request{request_} {}
73 const message_ptr_t &request_ = {})
noexcept;
Basic namespace for all rotor functionalities.
Definition rotor.hpp:21
intrusive_ptr_t< message_base_t > message_ptr_t
intrusive pointer for message
Definition message.h:118
intrusive_ptr_t< extended_error_t > extended_error_ptr_t
intrusive pointer to extended error type
Definition extended_error.h:25
boost::intrusive_ref_counter< T, counter_policy_t > arc_base_t
base class to inject ref-counter with the specified policy
Definition arc.hpp:24
boost::intrusive_ptr< T > intrusive_ptr_t
alias for intrusive pointer
Definition arc.hpp:27
Holds string context, error_code and the pointer to the following error.
Definition extended_error.h:37
extended_error_t(const std::string &context_, const std::error_code &ec_, const extended_error_ptr_t &next_={}, const message_ptr_t &request_={}) noexcept
extened error constructor
Definition extended_error.h:51
message_ptr_t request
pointer request caused error
Definition extended_error.h:48
std::string context
error context, usually actor identity
Definition extended_error.h:39
std::string message(const message_stringifier_t *stringifier=nullptr) const noexcept
human-readable detailed description of the error
extended_error_ptr_t next
pointer to the parent error
Definition extended_error.h:45
std::error_code ec
abstract error code, describing occurred error
Definition extended_error.h:42
Abstract interface for making textual/string representation of a message.
Definition message_stringifier.h:36