#include <error_code.hpp>
Public Types | |
| typedef int | value_type |
| The underlying representation of an error code. | |
| typedef unspecified_bool_type_t * | unspecified_bool_type |
Public Member Functions | |
| error_code () | |
| Default constructor. | |
| error_code (value_type v, error_category c) | |
| Construct with specific error code and category. | |
| value_type | value () const |
| Get the error value. | |
| error_category | category () const |
| Get the error category. | |
| std::string | message () const |
| Get the message associated with the error. | |
| operator unspecified_bool_type () const | |
| Operator returns non-null if there is a non-success error code. | |
| bool | operator! () const |
| Operator to test if the error represents success. | |
Private Attributes | |
| value_type | value_ |
| error_category | category_ |
Friends | |
| bool | operator== (const error_code &e1, const error_code &e2) |
| Equality operator to compare two error objects. | |
| bool | operator!= (const error_code &e1, const error_code &e2) |
| Inequality operator to compare two error objects. | |
Classes | |
| struct | unspecified_bool_type_t |
Definition at line 55 of file error_code.hpp.
| typedef int asio::error_code::value_type |
Definition at line 94 of file error_code.hpp.
| asio::error_code::error_code | ( | ) | [inline] |
| asio::error_code::error_code | ( | value_type | v, | |
| error_category | c | |||
| ) | [inline] |
| value_type asio::error_code::value | ( | ) | const [inline] |
Get the error value.
Definition at line 76 of file error_code.hpp.
References value_.
Referenced by asio::detail::reactive_socket_service< Protocol, Reactor >::at_mark(), asio::detail::reactive_socket_service< Protocol, Reactor >::available(), asio::detail::socket_ops::getsockopt(), and message().
| error_category asio::error_code::category | ( | ) | const [inline] |
| std::string asio::error_code::message | ( | ) | const [inline] |
Get the message associated with the error.
Definition at line 32 of file error_code.ipp.
References asio::detail::error_base< T >::already_open, category_, asio::detail::error_base< T >::eof, asio::detail::error_base< T >::host_not_found, asio::detail::error_base< T >::host_not_found_try_again, asio::detail::error_base< T >::no_data, asio::detail::error_base< T >::no_recovery, asio::detail::error_base< T >::not_found, asio::detail::error_base< T >::operation_aborted, asio::detail::error_base< T >::service_not_found, asio::detail::error_base< T >::socket_type_not_supported, asio::ssl_ecat, value(), and value_.
Referenced by libtorrent::udp_tracker_connection::announce_response(), libtorrent::udp_tracker_connection::connect_response(), libtorrent::http_tracker_connection::connected(), libtorrent::udp_tracker_connection::name_lookup(), libtorrent::http_tracker_connection::name_lookup(), libtorrent::peer_connection::on_connection_complete(), libtorrent::torrent::on_name_lookup(), libtorrent::torrent::on_proxy_name_lookup(), libtorrent::peer_connection::on_receive_data(), libtorrent::peer_connection::on_send_data(), libtorrent::http_tracker_connection::receive(), libtorrent::udp_tracker_connection::scrape_response(), libtorrent::aux::session_impl::second_tick(), libtorrent::http_tracker_connection::sent(), and asio::system_error::what().
| asio::error_code::operator unspecified_bool_type | ( | ) | const [inline] |
Operator returns non-null if there is a non-success error code.
Definition at line 97 of file error_code.hpp.
References value_.
| bool asio::error_code::operator! | ( | ) | const [inline] |
Operator to test if the error represents success.
Definition at line 106 of file error_code.hpp.
References value_.
| bool operator== | ( | const error_code & | e1, | |
| const error_code & | e2 | |||
| ) | [friend] |
| bool operator!= | ( | const error_code & | e1, | |
| const error_code & | e2 | |||
| ) | [friend] |
value_type asio::error_code::value_ [private] |
Definition at line 125 of file error_code.hpp.
Referenced by message(), operator unspecified_bool_type(), operator!(), and value().
error_category asio::error_code::category_ [private] |
1.5.6