Code

issue2550678: Allow pagesize=-1 which returns all results.
[roundup.git] / roundup / exceptions.py
1 """Exceptions for use across all Roundup components.
2 """
4 __docformat__ = 'restructuredtext'
6 class LoginError(Exception):
7     pass
9 class Unauthorised(Exception):
10     pass
12 class Reject(Exception):
13     """An auditor may raise this exception when the current create or set
14     operation should be stopped.
16     It is up to the specific interface invoking the create or set to
17     handle this exception sanely. For example:
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
24 class UsageError(ValueError):
25     pass
27 # vim: set filetype=python ts=4 sw=4 et si