From 9873e603b4845fc1b40f560a873af852c6ed108a Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Tue, 27 Apr 2021 16:06:28 -0500 Subject: [PATCH] Use SetupError name from pgwui_core instead of the old Error --- .../TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.34.1