mcsas.gui.utils.displayexception module

class DisplayException(exception, level='critical', fmt=None)[source]

Bases: QMessageBox

Displays a message box with the text of a provided exception. level: one of ‘question’, ‘info’, ‘warning’, ‘critical’

>>> from utilsgui import DisplayException, DialogInteraction
>>> from utils import AppError
>>> de = DialogInteraction.queryInstance(DisplayException,
...                                      AppError("test"),
...                                      button = 'default')
>>> type(de).__name__
'DisplayException'
>>> de.result() == 0
True
classmethod classAndMethodName()[source]

Retrieves some meta info to decribe the error further.