From: Karl O. Pinc Date: Fri, 23 Apr 2021 21:43:16 +0000 (-0500) Subject: Improve example exception X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=3a24f94ffdc54337fe6694777ac5a93e454fb32a;p=pgwui_develop Improve example exception --- 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 c2c6fce..8081380 100644 --- a/src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak +++ b/src/pgwui_develop/TEMPLATE/src/pgwui_TEMPLATE/exceptions.py.mak @@ -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)