From bbfe8116e54a0707d7eec2a91918c2c9ecb9d336 Mon Sep 17 00:00:00 2001 From: Matthew J Morrison Date: Tue, 16 Sep 2014 18:12:56 -0500 Subject: [PATCH 1/3] 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:

From e70c08be801a0cfd87277f78639014c268ca76f7 Mon Sep 17 00:00:00 2001 From: Matthew J Morrison Date: Tue, 16 Sep 2014 18:15:17 -0500 Subject: [PATCH 2/3] Wording Tweak --- 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 3d5c15ec2..67bc98550 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:

From b165480a441d6933a67df2f04f0b8fd40ee0e0f3 Mon Sep 17 00:00:00 2001 From: Matthew J Morrison Date: Wed, 17 Sep 2014 06:51:52 -0500 Subject: [PATCH 3/3] Wording Tweak --- 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 67bc98550..6610fce7e 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:

    -
  • Subclasses of APIException raised inside of classes subclassing APIView.
  • +
  • Subclasses of APIException raised inside an APIView class or @api_view.
  • Django's Http404 exception.
  • Django's PermissionDenied exception.