nanomsg / nnpy

cffi-based Python bindings for nanomsg
MIT License
117 stars 39 forks source link

Improve raised exceptions #27

Closed wrobell closed 8 years ago

wrobell commented 8 years ago

Improve raised exceptions

The last change allows to react appropriately when we are interested in specific errno, i.e. EAGAIN to repeat send operation.

wrobell commented 8 years ago

Removed result_code. I assume it will be always -1 on error.

The *args, **kwargs are part of Exception.__init__ signature, so just retaining the interface.

djc commented 8 years ago

Thanks!