From: Karl O. Pinc Date: Tue, 27 Apr 2021 21:06:28 +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=9873e603b4845fc1b40f560a873af852c6ed108a;p=pgwui_develop Use SetupError name from pgwui_core instead of the old Error --- diff --git a/src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak b/src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak index 8081380..70fd33e 100644 --- a/src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak +++ b/src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak @@ -25,16 +25,16 @@ from pgwui_core import exceptions as core_ex # PGWUI setting related exceptions -class Error(common_ex.Error): +class Error(common_ex.SetupError): pass -class ExampleOnOffAskError(Error): +class ExampleOnOffAskError(SetupError): def __init__(self, value): super().__init__( 'The "pgwui:${component}:example_on_off_ask" PGWUI setting ' ' must be "on", "off", "ask", or not present') -class ExampleDetailedError(Error): +class ExampleDetailedError(SetupError): def __init__(self, e, descr='', detail=''): super().__init__('Detailed error', descr=descr, detail=detail)