public final class ExitCatcher extends Object
catchExit(RunnableWhichThrows)| Modifier and Type | Method and Description |
|---|---|
static <EX extends Throwable> |
catchExit(RunnableWhichThrows<EX> runnable)
Runs the runnable and catches its call to
System.exit(int). |
@Nullable public static <EX extends Throwable> Integer catchExit(RunnableWhichThrows<EX> runnable) throws EX extends Throwable
System.exit(int).System.exit(int) call, or null iff the runnable completes
normallyEX extends ThrowableCopyright © 2018 Arno Unkrig. All rights reserved.