Code

Move out parts of client.py to new modules:
[roundup.git] / roundup / cgi / exceptions.py
1 class HTTPException(Exception):
2     pass
4 class Unauthorised(HTTPException):
5     pass
7 class Redirect(HTTPException):
8     pass
10 class NotFound(HTTPException):
11     pass
13 class NotModified(HTTPException):
14     pass
16 class FormError(ValueError):
17     """An 'expected' exception occurred during form parsing.
19     That is, something we know can go wrong, and don't want to alarm the user
20     with.
22     We trap this at the user interface level and feed back a nice error to the
23     user.
25     """
26     pass
28 class SendFile(Exception):
29     """Send a file from the database."""
31 class SendStaticFile(Exception):
32     """Send a static file from the instance html directory."""