From: Karl O. Pinc Date: Tue, 27 Apr 2021 21:20:42 +0000 (-0500) Subject: Use SetupError name from pgwui_core instead of the old Error X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=5b0993125fca9641ceed7e969234004496ac52c2;p=pgwui_server Use SetupError name from pgwui_core instead of the old Error --- diff --git a/src/pgwui_server/exceptions.py b/src/pgwui_server/exceptions.py index a6af732..19990df 100644 --- a/src/pgwui_server/exceptions.py +++ b/src/pgwui_server/exceptions.py @@ -23,10 +23,7 @@ ''' from pgwui_common import exceptions - - -class Error(exceptions.Error): - pass +from pgwui_common.exceptions import SetupError class ServerInfo(exceptions.Info): @@ -41,19 +38,19 @@ class AutoconfigureConflict(ServerInfo): 'Autoconfigure is True and there is a pyramid.include setting') -class MissingEqualError(Error): +class MissingEqualError(SetupError): def __init__(self, line): super().__init__( 'Expecting text containing an equals (=) sign, but ' f'instead got ({line})') -class BadValueError(Error): +class BadValueError(SetupError): def __init__(self, setting, ex): super().__init__( f'Bad setting value supplied to ({setting}): {ex}') -class BadSettingsAbort(Error): +class BadSettingsAbort(SetupError): def __init__(self): super().__init__('Aborting due to bad setting(s)')