MCPcopy Index your code
hub / github.com/encode/django-rest-framework / get_exception_handler_context

Method get_exception_handler_context

rest_framework/views.py:225–235  ·  view source on GitHub ↗

Returns a dict that is passed through to EXCEPTION_HANDLER, as the `context` argument.

(self)

Source from the content-addressed store, hash-verified

223 }
224
225 def get_exception_handler_context(self):
226 """
227 Returns a dict that is passed through to EXCEPTION_HANDLER,
228 as the `context` argument.
229 """
230 return {
231 'view': self,
232 'args': getattr(self, 'args', ()),
233 'kwargs': getattr(self, 'kwargs', {}),
234 'request': getattr(self, 'request', None)
235 }
236
237 def get_view_name(self):
238 """

Callers 1

handle_exceptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected