mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
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:
commit
c397705217
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user