summaryrefslogtreecommitdiff
path: root/repoze/bfg/exceptions.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-25 18:49:29 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-25 18:49:29 +0000
commit30e64f38f3a01d71f8a728df9d56f31d950ebd20 (patch)
treeebfdc1c832713e2ea737794fe090b766d3422407 /repoze/bfg/exceptions.py
parent36ca7c9f7f1b177d69be792f98fda054d7c36c45 (diff)
downloadpyramid-30e64f38f3a01d71f8a728df9d56f31d950ebd20.tar.gz
pyramid-30e64f38f3a01d71f8a728df9d56f31d950ebd20.tar.bz2
pyramid-30e64f38f3a01d71f8a728df9d56f31d950ebd20.zip
Make default_notfound_view and default_forbidden_view expect an exception as
a context. Cause append_slash_notfound_view to work in case it is registered via set_notfound_view.
Diffstat (limited to 'repoze/bfg/exceptions.py')
-rw-r--r--repoze/bfg/exceptions.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/repoze/bfg/exceptions.py b/repoze/bfg/exceptions.py
index a50da36b2..e7b6dd570 100644
--- a/repoze/bfg/exceptions.py
+++ b/repoze/bfg/exceptions.py
@@ -9,8 +9,9 @@ class Forbidden(Exception):
This exception's constructor accepts a single positional argument,
which should be a string. The value of this string will be placed
- into the WSGI environment under the ``repoze.bfg.message`` key,
- for availability to the Forbidden view."""
+ into the WSGI environment by the router under the
+ ``repoze.bfg.message`` key, for availability to the
+ :term:`Forbidden View`."""
class NotFound(Exception):
"""\
@@ -21,8 +22,9 @@ class NotFound(Exception):
This exception's constructor accepts a single positional argument,
which should be a string. The value of this string will be placed
- into the WSGI environment under the ``repoze.bfg.message`` key,
- for availability to the Not Found view."""
+ into the WSGI environment by the router under the
+ ``repoze.bfg.message`` key, for availability to the :term:`Not Found
+ View`."""
class ConfigurationError(ZCE):
""" Raised when inappropriate input values are supplied to an API