File: //lib64/python3.6/site-packages/zmq/__pycache__/error.cpython-36.opt-1.pyc
3
VS�_� � @ s� d Z ddlmZ G dd� de�ZG dd� de�ZG dd� de�ZG d d
� d
e�ZG dd� de�ZG d
d� de�Z ye
W n ek
r� eZ
Y nX G dd� dee
�Z
ddd�ZdadaG dd� de�Zddd�Zdddd
ddddgZdS )z 0MQ Error classes and functions.� )�EINTRc @ s e Zd ZdZdS )�ZMQBaseErrorz.Base exception class for 0MQ errors in Python.N)�__name__�
__module__�__qualname__�__doc__� r r �/usr/lib64/python3.6/error.pyr s r c @ s. e Zd ZdZdZd dd�Zdd� Zdd� ZdS )
�ZMQErrorz�Wrap an errno style error.
Parameters
----------
errno : int
The ZMQ errno or None. If None, then ``zmq_errno()`` is called and
used.
msg : string
Description of the error or None.
Nc C sh ddl m}m} |dkr|� }t|t�rJ|| _|dkrB||�| _qd|| _n|dkr^t|�| _n|| _dS )a Wrap an errno style error.
Parameters
----------
errno : int
The ZMQ errno or None. If None, then ``zmq_errno()`` is called and
used.
msg : string
Description of the error or None.
r )�strerror� zmq_errnoN)�zmq.backendr r �
isinstance�int�errno�str)�selfr �msgr r r r r �__init__ s
zZMQError.__init__c C s | j S )N)r )r r r r �__str__9 s zZMQError.__str__c C s d| j jt| �f S )Nz%s('%s'))� __class__r r )r r r r �__repr__<