devctrl.utility.messaging.warning.warn_exc#
- warn_exc(message: str, ex: Exception, category: type[Warning] | None = None, logger=None, level: Literal['warning', 'error'] = 'warning')[source]#
Show an exception as a warning using
warnings.warn.- Parameters:
message – Message to show.
logger – Optional logger to log the mssag with.
ex – Exception to show.
category – Warning category (class).
level – Log level to use