28 #ifndef WEBSOCKETPP_TRANSPORT_DEBUG_BASE_HPP
29 #define WEBSOCKETPP_TRANSPORT_DEBUG_BASE_HPP
31 #include <websocketpp/common/system_error.hpp>
32 #include <websocketpp/common/cpp11.hpp>
58 class category :
public lib::error_category {
62 char const * name()
const _WEBSOCKETPP_NOEXCEPT_TOKEN_ {
63 return "websocketpp.transport.debug";
66 std::string message(
int value)
const {
69 return "Generic stub transport policy error";
71 return "feature not implemented";
72 case invalid_num_bytes:
73 return "Invalid number of bytes";
75 return "Read while another read was outstanding";
84 static category instance;
90 return lib::error_code(
static_cast<
int>(e), get_category());
97 _WEBSOCKETPP_ERROR_CODE_ENUM_NS_START_
98 template<>
struct is_error_code_enum<websocketpp::transport::debug::error::value>
100 static bool const value =
true;
102 _WEBSOCKETPP_ERROR_CODE_ENUM_NS_END_