devctrl.gui.utility.messaging.exception.show_exception#
- show_exception(message: str, ex: Exception, logger: Logger | None = None, level: Literal['warning', 'error'] = 'error', title: str | None = None, typ: str | None = None, do_log: bool = True, show_traceback: bool = True)[source]#
Show a error dialog with information from an exception.
The error is also logged using the specified warning level.
- Parameters:
message – A context message
ex – The exception
logger – The logger, defaults to this module’s logger
level – Log level to use
title – Title of the dialog. Defaults to the level
typ – Message type for suppressing repeated messages. Defaults to the message itself.
do_log – Whether to log the message
show_traceback – Whether to include the traceback in the log and the dialog