mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Merge pull request #1882 from mattjmorrison/patch-2
Clarify "raised inside REST framework"
This commit is contained in:
commit
ddbd3cb659
|
@ -84,7 +84,7 @@ Note that the exception handler will only be called for responses generated by r
|
|||
|
||||
**Signature:** `APIException()`
|
||||
|
||||
The **base class** for all exceptions raised inside REST framework.
|
||||
The **base class** for all exceptions raised inside an `APIView` class or `@api_view`.
|
||||
|
||||
To provide a custom exception, subclass `APIException` and set the `.status_code` and `.default_detail` properties on the class.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user