Runnable
.-
Method Summary
Modifier and TypeMethodDescriptionstatic Throwable
runAndCatch
(Iterable<? extends Runnable> runnable) static Throwable
runAndCatch
(Runnable runnable) static Throwable
runAndCatch
(Runnable... runnable) static Throwable
runAndCatch
(Throwable t0, Iterable<? extends Runnable> runnable) static Throwable
runAndCatch
(Throwable t0, Runnable runnable) static Throwable
runAndCatch
(Throwable t0, Runnable... runnable)
-
Method Details
-
runAndCatch
Runs the givenRunnable
, catching allThrowable
.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)
for details on howThreadDeath
andInterruptedException
are 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, ornull
when none given and none new
-
runAndCatch
Runs the givenRunnable
, catching allThrowable
.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)
for details on howThreadDeath
andInterruptedException
are managed.- Parameters:
runnable
- The runnable to be invoked- Returns:
- A new throwable or
null
-
runAndCatch
Runs all of the givenRunnable
in order, catching allThrowable
.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)
for details on howThreadDeath
andInterruptedException
are 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, ornull
when none given and none new
-
runAndCatch
Runs all of the givenRunnable
in order, catching allThrowable
.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)
for details on howThreadDeath
andInterruptedException
are 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 givenRunnable
in order, catching allThrowable
.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)
for details on howThreadDeath
andInterruptedException
are 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, ornull
when none given and none new
-
runAndCatch
Runs all of the givenRunnable
in order, catching allThrowable
.See
Throwables.addSuppressed(java.lang.Throwable, java.lang.Throwable)
for details on howThreadDeath
andInterruptedException
are managed.- Parameters:
runnable
- The set of all runnables, which will be invoked in order- Returns:
- A new throwable or
null
-