Correction crash
[auf_roundup.git] / build / lib / roundup / exceptions.py
CommitLineData
c638d827
CR
1"""Exceptions for use across all Roundup components.
2"""
3
4__docformat__ = 'restructuredtext'
5
6class LoginError(Exception):
7 pass
8
9class Unauthorised(Exception):
10 pass
11
12class Reject(Exception):
13 """An auditor may raise this exception when the current create or set
14 operation should be stopped.
15
16 It is up to the specific interface invoking the create or set to
17 handle this exception sanely. For example:
18
19 - mailgw will trap and ignore Reject for file attachments and messages
20 - cgi will trap and present the exception in a nice format
21 """
22 pass
23
24class UsageError(ValueError):
25 pass
26
27# vim: set filetype=python ts=4 sw=4 et si