summaryrefslogtreecommitdiff
path: root/repoze/bfg/exceptions.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-23 21:00:09 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-23 21:00:09 +0000
commit85b19518f409f7ce78d2cd4c5c18cd705ba8489e (patch)
treeb4f689c1ec91089a941c8d3dcbec69e157655314 /repoze/bfg/exceptions.py
parent839ea015f9bc8c8096107e700a42bb872e9dc0c8 (diff)
downloadpyramid-85b19518f409f7ce78d2cd4c5c18cd705ba8489e.tar.gz
pyramid-85b19518f409f7ce78d2cd4c5c18cd705ba8489e.tar.bz2
pyramid-85b19518f409f7ce78d2cd4c5c18cd705ba8489e.zip
Remove 'Respond' exception (its addition would be purely speculative: we solved the reissue_time authentication policy issue a different way).
Diffstat (limited to 'repoze/bfg/exceptions.py')
-rw-r--r--repoze/bfg/exceptions.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/repoze/bfg/exceptions.py b/repoze/bfg/exceptions.py
index bc05fa699..afd617a2c 100644
--- a/repoze/bfg/exceptions.py
+++ b/repoze/bfg/exceptions.py
@@ -22,29 +22,3 @@ class NotFound(Exception):
into the WSGI environment under the ``repoze.bfg.message`` key,
for availability to the Not Found view."""
-class Respond(Exception):
- """\
- Raise this exception during view execution to return a response
- immediately without proceeeding any further through the codepath.
- Use of this exception is effectively a 'goto': its target is the
- exception handler within the :mod:`repoze.bfg' router that catches
- the exception and returns a response immediately. Note that
- because this exception is caught by the router, it will not
- propagate to any WSGI middleware. Note that this exception is
- typically only used by the framework itself and by authentication
- plugins to the framework.
-
- The exception must be initialized which a single argument, which
- is a :term:`response` object.
-
- An example:
-
- .. code-block:: python
- :linenos:
-
- from webob.exc import HTTPFound
- from repoze.bfg.exceptions import Respond
- response = HTTPFound(location='http://example.com')
- raise Respond(response)
- """
-