comparison roundup/exceptions.py @ 6123:c177e7128dc9

issue2551083 Replace BaseException and Exception with RoundupException issue2551083 - Replace BaseException and Exception as base classes with new RoundupException (inheriting from Exception) for most roundup exceptions.
author John Rouillard <rouilj@ieee.org>
date Fri, 03 Apr 2020 16:18:59 -0400
parents 292c9dfd06bd
children e16b7d47fdb2
comparison
equal deleted inserted replaced
6120:370cc9052239 6123:c177e7128dc9
2 """ 2 """
3 3
4 __docformat__ = 'restructuredtext' 4 __docformat__ = 'restructuredtext'
5 5
6 6
7 class LoginError(BaseException): 7 class RoundupException(Exception):
8 pass
9
10 class LoginError(RoundupException):
8 pass 11 pass
9 12
10 13
11 class Unauthorised(BaseException): 14 class Unauthorised(RoundupException):
12 pass 15 pass
13 16
17 class RejectBase(RoundupException):
18 pass
14 19
15 class Reject(BaseException): 20 class Reject(RejectBase):
16 """An auditor may raise this exception when the current create or set 21 """An auditor may raise this exception when the current create or set
17 operation should be stopped. 22 operation should be stopped.
18 23
19 It is up to the specific interface invoking the create or set to 24 It is up to the specific interface invoking the create or set to
20 handle this exception sanely. For example: 25 handle this exception sanely. For example:

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