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 booleanprivate final ArrayList<RandomizedRunner.UncaughtException> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the current list of uncaught exceptions and clear it.(package private) voidResume uncaught exception reporting.(package private) voidStop reporting uncaught exceptions.voiduncaughtException(Thread t, Throwable e)
-
Field Details
-
uncaughtExceptions
-
reporting
private boolean reporting
-
-
Constructor Details
-
QueueUncaughtExceptionsHandler
QueueUncaughtExceptionsHandler()
-
-
Method Details
-
uncaughtException
- Specified by:
uncaughtExceptionin 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.
-