comparison roundup/cgi/exceptions.py @ 2004:1782fe36e7b8

Move out parts of client.py to new modules: * actions.py - the xxxAction and xxxPermission functions refactored into Action classes * exceptions.py - all exceptions * form_parser.py - parsePropsFromForm & extractFormList in a FormParser class Also added some new tests for the Actions.
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Wed, 11 Feb 2004 21:34:31 +0000
parents
children 78e6a1e4984e
comparison
equal deleted inserted replaced
2003:a291bf753037 2004:1782fe36e7b8
1 class HTTPException(Exception):
2 pass
3
4 class Unauthorised(HTTPException):
5 pass
6
7 class Redirect(HTTPException):
8 pass
9
10 class NotFound(HTTPException):
11 pass
12
13 class NotModified(HTTPException):
14 pass
15
16 class FormError(ValueError):
17 """An 'expected' exception occurred during form parsing.
18
19 That is, something we know can go wrong, and don't want to alarm the user
20 with.
21
22 We trap this at the user interface level and feed back a nice error to the
23 user.
24
25 """
26 pass
27
28 class SendFile(Exception):
29 """Send a file from the database."""
30
31 class SendStaticFile(Exception):
32 """Send a static file from the instance html directory."""

Roundup Issue Tracker: http://roundup-tracker.org/