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.UncaughtExceptionHandler
Queue uncaught exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
reporting
private 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) void
resumeReporting()
Resume uncaught exception reporting.(package private) void
stopReporting()
Stop reporting uncaught exceptions.void
uncaughtException(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:
uncaughtException
in 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.
-
-