lericson/pylibmc — Issue #72: Expose libmemcached error code in pylibmc.Error
Author: kristaps
Created: 2012-02-13 12:09:59+00:00
State: open

Right now pylibmc.Error includes the error code in the error message, but the code should be accessible separately.

So instead of doing
```python
if "47" in error.message:
...
```
one could do
```python
if error.error_code == 47:
...
```