BugHandler module
BugHandler class.
Provides the excepthook function and all error reporting logic.
Exception hook method.
This method is invoked when an unhandled exception occurs anywhere in the program. If no exception handler has been installed yet sys.__excepthook__ will be invoked.
Note
This method will exit the program through os._exit and this way kill every running thread.
Initializes the ExceptionHandler.
Parameter: | application – UpdateManager.Application.Application object |
---|
Installs an exception handler.
Parameter: | handler – ExceptionHandlerBase implementation class. |
---|
Note
This method takes a class as handler parameter, not an instance!
A special implementation of threading.Thread which does not do ‘intelligent’ processing of exceptions inside threads.
Exception handling method.
Parameters: |
|
---|
Note
This method will be invoked by the special Exception Handler Thread, so make sure you do not invoke functions which are not thread-safe.
Note
If you return from this function execution of all threads will be resumed. However, correct execution can not be guaranteed after the exception has been raised, so consider using sys.exit in the implementation of this method.
Method to be called before handle_exception is invoked.
Do any preparation for the actual handling of the exception here. This method is optional.