Return exception context When exception object is created, the caller can supply some opaque context for the upper layers to better understand the cause of the exception. Returns ------- : :py:class:`dict` Dict holding context specific da
(self)
| 30 | |
| 31 | @property |
| 32 | def context(self): |
| 33 | """Return exception context |
| 34 | |
| 35 | When exception object is created, the caller can supply some opaque |
| 36 | context for the upper layers to better understand the cause of the |
| 37 | exception. |
| 38 | |
| 39 | Returns |
| 40 | ------- |
| 41 | : :py:class:`dict` |
| 42 | Dict holding context specific data |
| 43 | """ |
| 44 | return self._kwargs.get('context', {}) |
| 45 | |
| 46 | |
| 47 | class ValueConstraintError(PyAsn1Error): |