Mercurial > p > roundup > code
diff 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 |
line wrap: on
line diff
--- a/roundup/exceptions.py Tue Mar 03 21:00:38 2020 -0500 +++ b/roundup/exceptions.py Fri Apr 03 16:18:59 2020 -0400 @@ -4,15 +4,20 @@ __docformat__ = 'restructuredtext' -class LoginError(BaseException): +class RoundupException(Exception): + pass + +class LoginError(RoundupException): pass -class Unauthorised(BaseException): +class Unauthorised(RoundupException): pass +class RejectBase(RoundupException): + pass -class Reject(BaseException): +class Reject(RejectBase): """An auditor may raise this exception when the current create or set operation should be stopped.
