Skip to content

Commit 6ebe6f2

Browse files
authored
Update exceptions.md (#9071)
1 parent da92888 commit 6ebe6f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/exceptions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Note that the exception handler will only be called for responses generated by r
101101

102102
The **base class** for all exceptions raised inside an `APIView` class or `@api_view`.
103103

104-
To provide a custom exception, subclass `APIException` and set the `.status_code`, `.default_detail`, and `default_code` attributes on the class.
104+
To provide a custom exception, subclass `APIException` and set the `.status_code`, `.default_detail`, and `.default_code` attributes on the class.
105105

106106
For example, if your API relies on a third party service that may sometimes be unreachable, you might want to implement an exception for the "503 Service Unavailable" HTTP response code. You could do this like so:
107107

0 commit comments

Comments
 (0)