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.
This commit is contained in:
Matthew J Morrison 2014-09-16 18:12:56 -05:00
parent fdc63d3dda
commit bbfe8116e5

View File

@ -217,7 +217,7 @@ a.fusion-poweredby {
<p>REST framework's views handle various exceptions, and deal with returning appropriate error responses.</p> <p>REST framework's views handle various exceptions, and deal with returning appropriate error responses.</p>
<p>The handled exceptions are:</p> <p>The handled exceptions are:</p>
<ul> <ul>
<li>Subclasses of <code>APIException</code> raised inside REST framework.</li> <li>Subclasses of <code>APIException</code> raised inside of classes subclassing APIView REST framework.</li>
<li>Django's <code>Http404</code> exception.</li> <li>Django's <code>Http404</code> exception.</li>
<li>Django's <code>PermissionDenied</code> exception.</li> <li>Django's <code>PermissionDenied</code> exception.</li>
</ul> </ul>