public class Longjump extends Throwable
Longjump
should not print, process or log
it; instead, it should 'continue with the next element' or take a similar action. Consequently, has neither
a message
nor a cause
.Constructor and Description |
---|
Longjump() |
Modifier and Type | Method and Description |
---|---|
static <T> void |
catchLongjump(ConsumerWhichThrows<T,Longjump> delegate,
T subject)
|
static <T> T |
catchLongjump(ProducerWhichThrows<T,Longjump> delegate,
T defaultValue) |
static void |
catchLongjump(RunnableWhichThrows<Longjump> delegate)
Calls delegate
.run() , and catches and ignores any Longjump it throws. |
Throwable |
fillInStackTrace()
Override
Throwable.fillInStackTrace() with a NOP operation; this throwing and catching fast as
lightning. |
Throwable |
getCause() |
String |
getLocalizedMessage() |
String |
getMessage() |
StackTraceElement[] |
getStackTrace() |
Throwable |
initCause(Throwable cause) |
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintWriter s) |
String |
toString() |
addSuppressed, getSuppressed, printStackTrace, setStackTrace
public Throwable fillInStackTrace()
Throwable.fillInStackTrace()
with a NOP operation; this throwing and catching fast as
lightning.fillInStackTrace
in class Throwable
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public void printStackTrace(@Nullable PrintStream s)
printStackTrace
in class Throwable
public void printStackTrace(@Nullable PrintWriter s)
printStackTrace
in class Throwable
public StackTraceElement[] getStackTrace()
getStackTrace
in class Throwable
@Nullable public static <T> T catchLongjump(ProducerWhichThrows<T,Longjump> delegate, @Nullable T defaultValue)
.produce()
, or the defaultValue iff delegate.produce()
throws a Longjump
public static <T> void catchLongjump(ConsumerWhichThrows<T,Longjump> delegate, T subject)
public static void catchLongjump(RunnableWhichThrows<Longjump> delegate)
.run()
, and catches and ignores any Longjump
it throws.Copyright © 2018 Arno Unkrig. All rights reserved.