summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/hooks.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index e5b85dfbf..1c8a64fd7 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -59,7 +59,7 @@ Here's some sample code that implements a minimal NotFound view callable:
:term:`request`. The ``exception`` attribute of the request will be an
instance of the :exc:`~pyramid.httpexceptions.HTTPNotFound` exception that
caused the not found view to be called. The value of
- ``request.exception.args[0]`` will be a value explaining why the not found
+ ``request.exception.message`` will be a value explaining why the not found
error was raised. This message will be different when the
``debug_notfound`` environment setting is true than it is when it is
false.
@@ -125,8 +125,9 @@ Here's some sample code that implements a minimal forbidden view:
:term:`request`. The ``exception`` attribute of the request will be an
instance of the :exc:`~pyramid.httpexceptions.HTTPForbidden` exception
that caused the forbidden view to be called. The value of
- ``request.exception.args[0]`` will be a value explaining why the forbidden
- was raised. This message will be different when the
+ ``request.exception.message`` will be a value explaining why the forbidden
+ was raised and ``request.exception.result`` will be extended information
+ about the forbidden exception. These messages will be different when the
``debug_authorization`` environment setting is true than it is when it is
false.