-
public interface Task.UnobservedExceptionHandlerInterface for handlers invoked when a failed
{@code Task}is about to be finalized, but theexception has not been consumed.The handler will execute in the GC thread, so if the handler needs to do anything timeconsuming or complex it is a good idea to fire off a
{@code Task}to handle the exception.
-
-
Method Summary
Modifier and Type Method Description abstract voidunobservedException(Task<out Object> t, UnobservedTaskException e)Method invoked when the given task has an unobserved exception. -
-
Method Detail
-
unobservedException
abstract void unobservedException(Task<out Object> t, UnobservedTaskException e)
Method invoked when the given task has an unobserved exception.
Any exception thrown by this method will be ignored.
- Parameters:
t- the taske- the exception
-
-
-
-