Closed wrobell closed 8 years ago
Improve raised exceptions
str.decode
NNError
The last change allows to react appropriately when we are interested in specific errno, i.e. EAGAIN to repeat send operation.
errno
EAGAIN
Removed result_code. I assume it will be always -1 on error.
result_code
-1
The *args, **kwargs are part of Exception.__init__ signature, so just retaining the interface.
*args, **kwargs
Exception.__init__
Thanks!
Improve raised exceptions
str.decode
should work on both Python 2.x and Python 3)NNError
exception class when raising an exceptionThe last change allows to react appropriately when we are interested in specific
errno
, i.e.EAGAIN
to repeat send operation.