MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / context

Method context

pager_lib/pyasn1/error.py:32–44  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
47class ValueConstraintError(PyAsn1Error):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected