Runnable.-
Method Summary
Modifier and TypeMethodDescriptionstatic ThrowablerunAndCatch(Iterable<? extends Runnable> runnable) static ThrowablerunAndCatch(Runnable runnable) static ThrowablerunAndCatch(Runnable... runnable) static ThrowablerunAndCatch(Throwable t0, Iterable<? extends Runnable> runnable) static ThrowablerunAndCatch(Throwable t0, Runnable runnable) static ThrowablerunAndCatch(Throwable t0, Runnable... runnable)
-
Method Details
-
runAndCatch
Runs the givenRunnable, catching allThrowable.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)for details on howThreadDeathandInterruptedExceptionare managed.- Parameters:
t0- If notnull, any new throwables will be combined viaThrowables.addSuppressed(java.lang.Throwable, java.lang.Throwable)runnable- The runnable to be invoked- Returns:
t0, a new throwable, ornullwhen none given and none new
-
runAndCatch
Runs the givenRunnable, catching allThrowable.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)for details on howThreadDeathandInterruptedExceptionare managed.- Parameters:
runnable- The runnable to be invoked- Returns:
- A new throwable or
null
-
runAndCatch
Runs all of the givenRunnablein order, catching allThrowable.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)for details on howThreadDeathandInterruptedExceptionare managed.- Parameters:
t0- If notnull, any new throwables will be combined viaThrowables.addSuppressed(java.lang.Throwable, java.lang.Throwable)runnable- The set of all runnables, which will be invoked in order- Returns:
t0, a new throwable, ornullwhen none given and none new
-
runAndCatch
Runs all of the givenRunnablein order, catching allThrowable.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)for details on howThreadDeathandInterruptedExceptionare managed.- Parameters:
runnable- The set of all runnables, which will be invoked in order- Returns:
- A new throwable or
null
-
runAndCatch
Runs all of the givenRunnablein order, catching allThrowable.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)for details on howThreadDeathandInterruptedExceptionare managed.- Parameters:
t0- If notnull, any new throwables will be combined viaThrowables.addSuppressed(java.lang.Throwable, java.lang.Throwable)runnable- The set of all runnables, which will be invoked in order- Returns:
t0, a new throwable, ornullwhen none given and none new
-
runAndCatch
Runs all of the givenRunnablein order, catching allThrowable.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)for details on howThreadDeathandInterruptedExceptionare managed.- Parameters:
runnable- The set of all runnables, which will be invoked in order- Returns:
- A new throwable or
null
-
