From bbfe8116e54a0707d7eec2a91918c2c9ecb9d336 Mon Sep 17 00:00:00 2001 From: Matthew J Morrison Date: Tue, 16 Sep 2014 18:12:56 -0500 Subject: [PATCH] Clarify "raised inside REST framework" I ran into an issue today where I was not seeing the `rest_framework.views.exception_handler` do what I thought it should be doing. It turned out that I had imported `View` from `rest_framework.views` rather than importing `APIView` from `rest_framework.views`. The phrase "raised inside REST framework" was confusing as I was debugging this issue. I was unsure if that meant that I could raise those exceptions in my code or if it had to originate from within framework code. I'm not sure if the proposed wording is ideal, I just wanted to point out what I found to be confusing. --- api-guide/exceptions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-guide/exceptions.html b/api-guide/exceptions.html index 0f6a1f0b8..3d5c15ec2 100644 --- a/api-guide/exceptions.html +++ b/api-guide/exceptions.html @@ -217,7 +217,7 @@ a.fusion-poweredby {

REST framework's views handle various exceptions, and deal with returning appropriate error responses.

The handled exceptions are: