view roundup/cgi/exceptions.py @ 2037:35ed1560ba2b

missed one
author Richard Jones <richard@users.sourceforge.net>
date Mon, 23 Feb 2004 05:44:21 +0000
parents 1782fe36e7b8
children 78e6a1e4984e
line wrap: on
line source

class HTTPException(Exception):
    pass

class Unauthorised(HTTPException):
    pass

class Redirect(HTTPException):
    pass

class NotFound(HTTPException):
    pass

class NotModified(HTTPException):
    pass

class FormError(ValueError):
    """An 'expected' exception occurred during form parsing.

    That is, something we know can go wrong, and don't want to alarm the user
    with.

    We trap this at the user interface level and feed back a nice error to the
    user.

    """
    pass

class SendFile(Exception):
    """Send a file from the database."""

class SendStaticFile(Exception):
    """Send a static file from the instance html directory."""

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