NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::error Namespace Reference

Library level error codes. More...

Classes

class  category
 

Enumerations

enum  value {
  general = 1, send_queue_full, payload_violation, endpoint_not_secure,
  endpoint_unavailable, invalid_uri, no_outgoing_buffers, no_incoming_buffers,
  invalid_state, bad_close_code, reserved_close_code, invalid_close_code,
  invalid_utf8, invalid_subprotocol, bad_connection, test,
  con_creation_failed, unrequested_subprotocol, client_only, server_only,
  http_connection_ended, open_handshake_timeout, close_handshake_timeout, invalid_port,
  async_accept_not_listening, operation_canceled, rejected, upgrade_required,
  invalid_version, unsupported_version, http_parse_error, extension_neg_failed
}
 

Functions

const lib::error_category & get_category ()
 
lib::error_code make_error_code (error::value e)
 

Detailed Description

Library level error codes.

Enumeration Type Documentation

Enumerator
general 

Catch-all library error.

send_queue_full 

send attempted when endpoint write queue was full

payload_violation 

Attempted an operation using a payload that was improperly formatted ex: invalid UTF8 encoding on a text message.

endpoint_not_secure 

Attempted to open a secure connection with an insecure endpoint.

endpoint_unavailable 

Attempted an operation that required an endpoint that is no longer available.

This is usually because the endpoint went out of scope before a connection that it created.

invalid_uri 

An invalid uri was supplied.

no_outgoing_buffers 

The endpoint is out of outgoing message buffers.

no_incoming_buffers 

The endpoint is out of incoming message buffers.

invalid_state 

The connection was in the wrong state for this operation.

bad_close_code 

Unable to parse close code.

reserved_close_code 

Close code is in a reserved range.

invalid_close_code 

Close code is invalid.

invalid_utf8 

Invalid UTF-8.

invalid_subprotocol 

Invalid subprotocol.

bad_connection 

An operation was attempted on a connection that did not exist or was already deleted.

test 

Unit testing utility error code.

con_creation_failed 

Connection creation attempted failed.

unrequested_subprotocol 

Selected subprotocol was not requested by the client.

client_only 

Attempted to use a client specific feature on a server endpoint.

server_only 

Attempted to use a server specific feature on a client endpoint.

http_connection_ended 

HTTP connection ended.

open_handshake_timeout 

WebSocket opening handshake timed out.

close_handshake_timeout 

WebSocket close handshake timed out.

invalid_port 

Invalid port in URI.

async_accept_not_listening 

An async accept operation failed because the underlying transport has been requested to not listen for new connections anymore.

operation_canceled 

The requested operation was canceled.

rejected 

Connection rejected.

upgrade_required 

Upgrade Required.

This happens if an HTTP request is made to a WebSocket++ server that doesn't implement an http handler

invalid_version 

Invalid WebSocket protocol version.

unsupported_version 

Unsupported WebSocket protocol version.

http_parse_error 

HTTP parse error.

extension_neg_failed 

Extension negotiation failed.

Definition at line 45 of file error.hpp.

Function Documentation

const lib::error_category& websocketpp::error::get_category ( )
inline

Definition at line 230 of file error.hpp.

Referenced by make_error_code().

lib::error_code websocketpp::error::make_error_code ( error::value  e)
inline

Definition at line 235 of file error.hpp.

References _WEBSOCKETPP_ERROR_CODE_ENUM_NS_START_, and get_category().

Referenced by websocketpp::connection< config >::add_subprotocol(), websocketpp::connection< config >::append_header(), websocketpp::transport::asio::endpoint< config >::async_accept(), websocketpp::transport::stub::endpoint< config >::async_connect(), websocketpp::transport::asio::endpoint< config >::async_connect(), BOOST_AUTO_TEST_CASE(), websocketpp::connection< config >::close(), websocketpp::extensions::permessage_deflate::disabled< config >::compress(), websocketpp::processor::hybi00< stub_config >::consume(), websocketpp::processor::hybi13< stub_config >::consume(), websocketpp::extensions::permessage_deflate::disabled< config >::decompress(), websocketpp::close::extract_code(), websocketpp::close::extract_reason(), websocketpp::processor::hybi13< stub_config >::finalize_message(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::get_con_from_hdl(), websocketpp::client< websocketpp::config::asio_client >::get_connection(), websocketpp::transport::asio::endpoint< config >::get_local_endpoint(), websocketpp::uri::get_query(), websocketpp::connection< config >::get_supported_versions(), websocketpp::transport::asio::endpoint< config >::handle_accept(), websocketpp::connection< config >::handle_close_handshake_timeout(), websocketpp::transport::asio::endpoint< config >::handle_connect(), websocketpp::transport::asio::endpoint< config >::handle_connect_timeout(), websocketpp::connection< config >::handle_open_handshake_timeout(), websocketpp::connection< config >::handle_read_frame(), websocketpp::connection< config >::handle_read_handshake(), websocketpp::connection< config >::handle_read_http_response(), websocketpp::transport::asio::endpoint< config >::handle_resolve(), websocketpp::transport::asio::endpoint< config >::handle_resolve_timeout(), websocketpp::connection< config >::handle_send_http_request(), mock_con::handle_start(), websocketpp::transport::asio::endpoint< config >::handle_timer(), websocketpp::connection< config >::handle_transport_init(), websocketpp::connection< config >::handle_write_http_response(), websocketpp::transport::stub::endpoint< config >::init(), websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::connection< config >::initialize_processor(), websocketpp::transport::asio::endpoint< config >::listen(), websocketpp::extensions::permessage_deflate::disabled< config >::negotiate(), websocketpp::processor::hybi13< stub_config >::negotiate_extensions_helper(), websocketpp::connection< config >::ping(), websocketpp::connection< config >::pong(), websocketpp::processor::hybi13< stub_config >::prepare_close(), websocketpp::processor::hybi13< stub_config >::prepare_control(), websocketpp::processor::hybi00< stub_config >::prepare_data_frame(), websocketpp::processor::hybi13< stub_config >::prepare_data_frame(), websocketpp::connection< config >::process_handshake_request(), websocketpp::processor::hybi13< stub_config >::process_payload_bytes(), websocketpp::transport::asio::connection< config >::proxy_init(), websocketpp::connection< config >::remove_header(), websocketpp::connection< config >::replace_header(), sd_handler(), websocketpp::connection< config >::select_subprotocol(), websocketpp::connection< config >::send(), websocketpp::connection< config >::send_http_response(), websocketpp::connection< config >::set_body(), websocketpp::connection< config >::set_status(), websocketpp::connection< config >::start(), websocketpp::server< websocketpp::config::asio >::start_accept(), websocketpp::transport::asio::endpoint< config >::stop_listening(), websocketpp::transport::asio::basic_socket::connection::translate_ec(), websocketpp::transport::asio::tls_socket::connection::translate_ec(), websocketpp::processor::hybi00< stub_config >::validate_handshake(), websocketpp::processor::hybi13< stub_config >::validate_handshake(), websocketpp::processor::hybi13< stub_config >::validate_incoming_basic_header(), websocketpp::processor::hybi13< stub_config >::validate_incoming_extended_header(), and write_handler_error().