1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-06-03 13:13:09 +03:00

Merge pull request from ByteInternet/fix-exception-handler-docs

Remove mention of Django's built-in ValidationError in docstring
This commit is contained in:
Tom Christie 2015-04-24 14:43:23 +01:00
commit c397705217

View File

@ -54,8 +54,7 @@ def exception_handler(exc, context):
Returns the response that should be used for any given exception. Returns the response that should be used for any given exception.
By default we handle the REST framework `APIException`, and also By default we handle the REST framework `APIException`, and also
Django's built-in `ValidationError`, `Http404` and `PermissionDenied` Django's built-in `Http404` and `PermissionDenied` exceptions.
exceptions.
Any unhandled exceptions may return `None`, which will cause a 500 error Any unhandled exceptions may return `None`, which will cause a 500 error
to be raised. to be raised.