ZIO
Python and C++ interface to ZeroMQ and Zyre
Static Public Member Functions | List of all members
zio::socket_error Class Reference

exception indicating a socket error More...

#include <exceptions.hpp>

Inheritance diagram for zio::socket_error:
Inheritance graph
[legend]
Collaboration diagram for zio::socket_error:
Collaboration graph
[legend]

Static Public Member Functions

static socket_error create (int id_, const char *errmsg, const char *extra=NULL)
 Create a socket error with all data and optional extra message. More...
 
static socket_error create (const char *extra=NULL)
 

Additional Inherited Members

- Public Member Functions inherited from zio::exception
const char * what () const noexcept override
 returns the explanatory string More...
 
- Public Attributes inherited from zio::exception
const int id
 the id of the exception More...
 
- Protected Member Functions inherited from zio::exception
 exception (int id_, const char *what_arg)
 
- Static Protected Member Functions inherited from zio::exception
static std::string name (const std::string &ename, int id_)
 

Detailed Description

exception indicating a socket error

This exception is thrown when the underlying socket operations indicate an error. The ID is set to the errno.

Definition at line 42 of file exceptions.hpp.

Member Function Documentation

◆ create() [1/2]

static socket_error zio::socket_error::create ( int  id_,
const char *  errmsg,
const char *  extra = NULL 
)
inlinestatic

Create a socket error with all data and optional extra message.

Definition at line 46 of file exceptions.hpp.

◆ create() [2/2]

static socket_error zio::socket_error::create ( const char *  extra = NULL)
inlinestatic

Create a socket error with implicit use of errno/strerr and optional extra message.

Definition at line 57 of file exceptions.hpp.


The documentation for this class was generated from the following file: