1 #ifndef ZIO_EXCEPTIONS_HPP_SEEN     2 #define ZIO_EXCEPTIONS_HPP_SEEN    20         const char* 
what() const noexcept
 override {
    27         exception(
int id_, 
const char* what_arg) : id(id_), m(what_arg) {}
    28         static std::string 
name(
const std::string& ename, 
int id_) {
    29             return "[zio.exception." + ename + 
"." + std::to_string(id_) + 
"] ";
    58             return create(errno, strerror(errno), extra);
    79                                     const char* extra=NULL) {
 exception(int id_, const char *what_arg)
 
static message_error create(int id_, const char *errmsg, const char *extra=NULL)
 
exception indicating a socket error 
 
exception indicating message error 
 
const int id
the id of the exception 
 
static socket_error create(const char *extra=NULL)
 
const char * what() const noexcept override
returns the explanatory string 
 
general exception class for zio 
 
static socket_error create(int id_, const char *errmsg, const char *extra=NULL)
Create a socket error with all data and optional extra message. 
 
static std::string name(const std::string &ename, int id_)
 
implementation of ZIO data flow protocol endpoints