Class RandomizedRunner.QueueUncaughtExceptionsHandler
- java.lang.Object
-
- com.carrotsearch.randomizedtesting.RandomizedRunner.QueueUncaughtExceptionsHandler
-
- All Implemented Interfaces:
java.lang.Thread.UncaughtExceptionHandler
- Enclosing class:
- RandomizedRunner
static class RandomizedRunner.QueueUncaughtExceptionsHandler extends java.lang.Object implements java.lang.Thread.UncaughtExceptionHandlerQueue uncaught exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanreportingprivate java.util.ArrayList<RandomizedRunner.UncaughtException>uncaughtExceptions
-
Constructor Summary
Constructors Constructor Description QueueUncaughtExceptionsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<RandomizedRunner.UncaughtException>getUncaughtAndClear()Return the current list of uncaught exceptions and clear it.(package private) voidresumeReporting()Resume uncaught exception reporting.(package private) voidstopReporting()Stop reporting uncaught exceptions.voiduncaughtException(java.lang.Thread t, java.lang.Throwable e)
-
-
-
Field Detail
-
uncaughtExceptions
private final java.util.ArrayList<RandomizedRunner.UncaughtException> uncaughtExceptions
-
reporting
private boolean reporting
-
-
Method Detail
-
uncaughtException
public void uncaughtException(java.lang.Thread t, java.lang.Throwable e)- Specified by:
uncaughtExceptionin interfacejava.lang.Thread.UncaughtExceptionHandler
-
stopReporting
void stopReporting()
Stop reporting uncaught exceptions.
-
resumeReporting
void resumeReporting()
Resume uncaught exception reporting.
-
getUncaughtAndClear
public java.util.List<RandomizedRunner.UncaughtException> getUncaughtAndClear()
Return the current list of uncaught exceptions and clear it.
-
-