comparison 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
comparison
equal deleted inserted replaced
4082:5eb5f7e66c37 4083:bbab97f8ffb2
1 #$Id: exceptions.py,v 1.1 2004-03-26 00:44:11 richard Exp $ 1 """Exceptions for use across all Roundup components.
2 '''Exceptions for use across all Roundup components. 2 """
3 '''
4 3
5 __docformat__ = 'restructuredtext' 4 __docformat__ = 'restructuredtext'
6 5
6 class LoginError(Exception):
7 pass
8
9 class Unauthorised(Exception):
10 pass
11
7 class Reject(Exception): 12 class Reject(Exception):
8 '''An auditor may raise this exception when the current create or set 13 """An auditor may raise this exception when the current create or set
9 operation should be stopped. 14 operation should be stopped.
10 15
11 It is up to the specific interface invoking the create or set to 16 It is up to the specific interface invoking the create or set to
12 handle this exception sanely. For example: 17 handle this exception sanely. For example:
13 18
14 - mailgw will trap and ignore Reject for file attachments and messages 19 - mailgw will trap and ignore Reject for file attachments and messages
15 - cgi will trap and present the exception in a nice format 20 - cgi will trap and present the exception in a nice format
16 ''' 21 """
17 pass 22 pass
18 23
19 class UsageError(ValueError): 24 class UsageError(ValueError):
20 pass 25 pass
21 26

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