summaryrefslogtreecommitdiff
path: root/repoze/bfg/interfaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/interfaces.py')
-rw-r--r--repoze/bfg/interfaces.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py
index 8896c883e..5d8394484 100644
--- a/repoze/bfg/interfaces.py
+++ b/repoze/bfg/interfaces.py
@@ -26,8 +26,10 @@ class IResponse(Interface):
class IView(Interface):
def __call__(context, request):
""" Must return an object that implements IResponse. May
- optionally raise ``repoze.bfg.security.Unauthorized`` if an
- authorization failure is detected during view execution."""
+ optionally raise ``repoze.bfg.exceptions.Forbidden`` if an
+ authorization failure is detected during view execution or
+ ``repoze.bfg.exceptions.NotFound`` if the not found page is
+ meant to be returned."""
class ISecuredView(IView):
""" *Internal only* interface. Not an API. """