pmem/pmemkv-python

Throw more concrete exceptions

Closed this issue · 1 comments

pmemkv seems to throw only general Exception ('PyExc_Exception') which is not very convenient in handling. Some more descriptive built-in exceptions may be thrown instead, see: https://docs.python.org/3.7/library/exceptions.html

Additionally, each exception should contain pmemkv_errormsg string