Mercurial > p > roundup > code
diff roundup/exceptions.py @ 4083:bbab97f8ffb2
XMLRPC improvements:
* Add support for actions to XMLRPC interface.
* Provide bridge so user actions may be executed
either via CGI or XMLRPC.
* Adjust XMLRPC tests to recent work.
* Cleanup.
| author | Stefan Seefeld <stefan@seefeld.name> |
|---|---|
| date | Fri, 27 Feb 2009 17:46:47 +0000 |
| parents | 042ace5ddb7c |
| children | 494d255043c9 |
line wrap: on
line diff
--- a/roundup/exceptions.py Fri Feb 27 16:15:33 2009 +0000 +++ b/roundup/exceptions.py Fri Feb 27 17:46:47 2009 +0000 @@ -1,11 +1,16 @@ -#$Id: exceptions.py,v 1.1 2004-03-26 00:44:11 richard Exp $ -'''Exceptions for use across all Roundup components. -''' +"""Exceptions for use across all Roundup components. +""" __docformat__ = 'restructuredtext' +class LoginError(Exception): + pass + +class Unauthorised(Exception): + pass + class Reject(Exception): - '''An auditor may raise this exception when the current create or set + """An auditor may raise this exception when the current create or set operation should be stopped. It is up to the specific interface invoking the create or set to @@ -13,7 +18,7 @@ - mailgw will trap and ignore Reject for file attachments and messages - cgi will trap and present the exception in a nice format - ''' + """ pass class UsageError(ValueError):
