Details
-
Type:
New Feature
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.1.2
-
Component/s: Generic
-
Labels:None
Description
Being able to handle specific errors is great with the Exception's "errno". It would be a lot neater if there were constants for this instead of numbers - to promote better readability.
```python
try:
documents = domino.get_all("Sales Order")
except OperationalError as err:
if err.errno == ER.LOCK_WAIT_TIMEOUT:
...
logger.exception("Lock wait timeout error ocurred")
```