Class RandomizedRunner.QueueUncaughtExceptionsHandler
java.lang.Object
com.carrotsearch.randomizedtesting.RandomizedRunner.QueueUncaughtExceptionsHandler
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
- Enclosing class:
RandomizedRunner
static class RandomizedRunner.QueueUncaughtExceptionsHandler
extends Object
implements Thread.UncaughtExceptionHandler
Queue uncaught exceptions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final ArrayList
<RandomizedRunner.UncaughtException> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the current list of uncaught exceptions and clear it.(package private) void
Resume uncaught exception reporting.(package private) void
Stop reporting uncaught exceptions.void
uncaughtException
(Thread t, Throwable e)
-
Field Details
-
uncaughtExceptions
-
reporting
private boolean reporting
-
-
Constructor Details
-
QueueUncaughtExceptionsHandler
QueueUncaughtExceptionsHandler()
-
-
Method Details
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-
stopReporting
void stopReporting()Stop reporting uncaught exceptions. -
resumeReporting
void resumeReporting()Resume uncaught exception reporting. -
getUncaughtAndClear
Return the current list of uncaught exceptions and clear it.
-