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, setStackTracepublic Throwable fillInStackTrace()
Throwable.fillInStackTrace() with a NOP operation; this throwing and catching fast as
lightning.fillInStackTrace in class Throwablepublic String getMessage()
getMessage in class Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic void printStackTrace(@Nullable PrintStream s)
printStackTrace in class Throwablepublic void printStackTrace(@Nullable PrintWriter s)
printStackTrace in class Throwablepublic 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 Longjumppublic 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.