10#include <system_error>
11#include "rotor/export.h"
15#pragma warning(disable : 4251)
16#pragma warning(disable : 4275)
53 virtual const char *
name() const noexcept override;
56 virtual std::
string message(
int c) const override;
63 virtual const char *
name() const noexcept override;
66 virtual std::
string message(
int c) const override;
72ROTOR_API const details::error_code_category &error_code_category();
75ROTOR_API const details::shutdown_code_category &shutdown_code_category();
78ROTOR_API inline std::error_code make_error_code(const
error_code_t e) {
90template <>
struct is_error_code_enum<
rotor::error_code_t> : std::true_type {};
91template <>
struct is_error_code_enum<
rotor::shutdown_code_t> : std::true_type {};
category support for rotor error codes
Definition error_code.h:50
virtual const char * name() const noexcept override
category support for rotor shutdown codes
Definition error_code.h:60
virtual const char * name() const noexcept override
Basic namespace for all rotor functionalities.
Definition rotor.hpp:21
shutdown_code_t
actor shutdown reasons as error code
Definition error_code.h:38
ROTOR_API std::error_code make_error_code(const error_code_t e)
makes std::error_code from rotor error code enumerations
Definition error_code.h:78
ROTOR_API const details::error_code_category & error_code_category()
returns error code category for rotor error codes
ROTOR_API const details::shutdown_code_category & shutdown_code_category()
returns error code category for rotor shutdown codes
error_code_t
fatal error codes in rotor
Definition error_code.h:22