#NEWLINE# def set_spawn_error_hook( self , _on_error_method , * args , **kwargs ) : #NEWLINE# #INDENT# "Create a hook to handle exceptions when spawning a task.\n\n        Create a hook that gets called upon an exception being raised\n        from spawning a background thread to do a task.\n\n        :param _on_error_method: a callable object, it's first parameter\n            should accept the Exception object that was raised.\n        :param args: additional args passed to the callable object.\n        :param kwargs: additional kwargs passed to the callable object.\n\n        " #NEWLINE# self . _on_error_method = _on_error_method #NEWLINE# self . _on_error_args = args #NEWLINE# self . _on_error_kwargs = kwargs