Package co.paralleluniverse.strands
Interface Strand.UncaughtExceptionHandler
-
- Enclosing class:
- Strand
public static interface Strand.UncaughtExceptionHandlerInterface for handlers invoked when aStrandabruptly terminates due to an uncaught exception.When a fiber is about to terminate due to an uncaught exception, the Java Virtual Machine will query the fiber for its
UncaughtExceptionHandlerusingStrand.getUncaughtExceptionHandler()and will invoke the handler'suncaughtExceptionmethod, passing the fiber and the exception as arguments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiduncaughtException(Strand f, java.lang.Throwable e)Method invoked when the given fiber terminates due to the given uncaught exception.
-
-
-
Method Detail
-
uncaughtException
void uncaughtException(Strand f, java.lang.Throwable e)
Method invoked when the given fiber terminates due to the given uncaught exception.Any exception thrown by this method will be ignored.
- Parameters:
f- the fibere- the exception
-
-