|
BonPrinter v1.2.0
Thermal Printer tool
|
Global exception handler. More...
Public Member Functions | |
| None | __init__ (self, *Any args, **Any kwargs) |
| None | exception_hook (self, type[BaseException] exc_type, BaseException exc_value, Optional[TracebackType] exc_traceback=None) |
| Custom exception hook. | |
| None | set_main_window_controller (self, "MainWindow" main_window_controller) |
| Sets the main window controller in order to unblock the UI after a critical exception is caught. | |
| None | show_exception_box (self, str s_log_msg) |
| Displays the error message box. | |
Public Attributes | |
| bool | crash_arrived = False |
| main_window_controller = None | |
| show_exception_box | |
Static Public Attributes | |
| exception_caught = SIGNAL(object) | |
Global exception handler.
Overrides system exception hook to catch all unexpected errors.
Definition at line 28 of file app_err_handler.py.
| None __init__ | ( | self, | |
| *Any | args, | ||
| **Any | kwargs ) |
Definition at line 34 of file app_err_handler.py.
| None exception_hook | ( | self, | |
| type[BaseException] | exc_type, | ||
| BaseException | exc_value, | ||
| Optional[TracebackType] | exc_traceback = None ) |
Custom exception hook.
It is triggered each time an uncaught exception occurs.
| exc_type | : exception type |
| exc_value | : exception value |
| exc_traceback | : exception traceback |
Definition at line 81 of file app_err_handler.py.
| None set_main_window_controller | ( | self, | |
| "MainWindow" | main_window_controller ) |
Sets the main window controller in order to unblock the UI after a critical exception is caught.
| main_window_controller | : main window controller |
Definition at line 99 of file app_err_handler.py.
| None show_exception_box | ( | self, | |
| str | s_log_msg ) |
Displays the error message box.
| s_log_msg | : the error message to be displayed in details section |
Definition at line 48 of file app_err_handler.py.
| bool crash_arrived = False |
Definition at line 40 of file app_err_handler.py.
|
static |
Definition at line 32 of file app_err_handler.py.
| main_window_controller = None |
Definition at line 39 of file app_err_handler.py.
| show_exception_box |
Definition at line 46 of file app_err_handler.py.