Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
None
-
1
Description
Currently, Durability Impossible error is not wrapped around a DurabilityImpossibleException instead what is thrown today is
couchbase.exceptions.LCB_0x134 (generated, catch: ): <Key='test-key', RC=0x134[LCB_ERR_DURABILITY_IMPOSSIBLE (308)], Operational Error, Results=1, C Source=(src/multiresult.c,332), Context={'status_code': 161, 'opaque': 0, 'cas': 0, 'key': 'test-key', 'bucket': 'default', 'collection': '_default', 'scope': '_default', 'context': '', 'ref': '', 'endpoint': 'localhost:11210', 'type': 'KVErrorContext'}, Tracing Output={"test-key": {"debug_info": {"FILE": "src/callbacks.c", "FUNC": "dur_chain2", "LINE": 743}}}> |
As a developer its is not possible to catch an exception as the type is unknown.