Chops Net IP
Loading...
Searching...
No Matches

Error codes, exception class, and error category within Chops net_ip library. More...

#include <stdexcept>
#include <system_error>
#include <string>
Include dependency graph for net_ip_error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  chops::net::detail::net_ip_err_category
 
struct  std::is_error_code_enum< chops::net::net_ip_errc >
 
class  chops::net::net_ip_exception
 General net_ip exception class. More...
 

Enumerations

enum class  net_ip_errc {
  weak_ptr_expired = 1 , message_handler_terminated = 2 , io_already_started = 4 , io_already_stopped = 5 ,
  tcp_io_handler_stopped = 6 , udp_io_handler_stopped = 7 , net_entity_already_started = 8 , net_entity_already_stopped = 9 ,
  tcp_acceptor_stopped = 10 , tcp_acceptor_closed = 11 , udp_entity_stopped = 12 , udp_entity_closed = 13 ,
  tcp_connector_stopped = 14 , tcp_connector_closed = 15 , tcp_connector_resolving_addresses = 16 , tcp_connector_connecting = 17 ,
  tcp_connector_connected = 18 , tcp_connector_timeout = 19 , tcp_connector_no_reconnect_attempted = 20 , functor_variant_mismatch = 30
}
 

Functions

const detail::net_ip_err_categorychops::net::get_err_category ()
 
error_code std::make_error_code (chops::net::net_ip_errc e) noexcept
 

Detailed Description

Error codes, exception class, and error category within Chops net_ip library.

The error_code customization is inspired by blog code from Andrzej Krzemienski and Bjorn Reese.

Author
Cliff Green

Copyright (c) 2017-2019 by Cliff Green

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)