Use SetupError name from pgwui_core instead of the old Error
authorKarl O. Pinc <kop@karlpinc.com>
Tue, 27 Apr 2021 21:06:28 +0000 (16:06 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Tue, 27 Apr 2021 21:06:28 +0000 (16:06 -0500)
src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak

index 8081380c08aa5bffeef05cfe4291327b652f153d..70fd33ef30f78442f0b21b39ee8030eeeb5e6d1a 100644 (file)
@@ -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)