Net++
A class-based C++ encapsulation over the POSIX Sockets API
Loading...
Searching...
No Matches
error.hpp File Reference
#include <system_error>

Go to the source code of this file.

Namespaces

namespace  netpp_error
 

Enumerations

enum  netpp_error::LibraryError { netpp_error::BindFailed , netpp_error::ConnectFailed , netpp_error::MissingAsyncContext }
 Enumeration representing the different error codes handled by LibraryErrorCategory. More...
 

Functions

void netpp_error::throw_system_error (std::string what_arg)
 Throws an exception with std::generic category()
 
void netpp_error::log_error (std::system_error &e)
 Prints the error to stdout.
 
void netpp_error::throw_gai_error (int &ev, std::string what_arg)
 Throws an exception with gai_error category.
 
void netpp_error::throw_library_error (LibraryError code, std::string what_arg)
 Throws an exception with library_error category.