Merge pull request #2873 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.
By default we handle the REST framework `APIException`, and also
Django's built-in `ValidationError`, `Http404` and `PermissionDenied`
exceptions.
Django's built-in `Http404` and `PermissionDenied` exceptions.
Any unhandled exceptions may return `None`, which will cause a 500 error
to be raised.