Improve example exception
authorKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Apr 2021 21:43:16 +0000 (16:43 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Apr 2021 21:43:16 +0000 (16:43 -0500)
src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak

index c2c6fcee23ed5fcb5513bb9d2cc17e9cf673c8c6..8081380c08aa5bffeef05cfe4291327b652f153d 100644 (file)
@@ -35,9 +35,6 @@ class ExampleOnOffAskError(Error):
             'The "pgwui:${component}:example_on_off_ask" PGWUI setting '
             ' must be "on", "off", "ask", or not present')
 
-
-# Exceptions that require detail
-
-class ExampleDetailedError(core_ex.PGWUIError):
+class ExampleDetailedError(Error):
     def __init__(self, e, descr='', detail=''):
-        super().__init__(e, descr, detail)
+        super().__init__('Detailed error', descr=descr, detail=detail)