public class Longjump
extends java.lang.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. |
java.lang.Throwable |
fillInStackTrace()
Override
Throwable.fillInStackTrace() with a NOP operation; this throwing and catching fast as
lightning. |
java.lang.Throwable |
getCause() |
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
java.lang.StackTraceElement[] |
getStackTrace() |
java.lang.Throwable |
initCause(java.lang.Throwable cause) |
void |
printStackTrace(java.io.PrintStream s) |
void |
printStackTrace(java.io.PrintWriter s) |
java.lang.String |
toString() |
public java.lang.Throwable fillInStackTrace()
Throwable.fillInStackTrace() with a NOP operation; this throwing and catching fast as
lightning.fillInStackTrace in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic java.lang.Throwable initCause(@Nullable java.lang.Throwable cause)
initCause in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.Throwablepublic void printStackTrace(@Nullable java.io.PrintStream s)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(@Nullable java.io.PrintWriter s)
printStackTrace in class java.lang.Throwablepublic java.lang.StackTraceElement[] getStackTrace()
getStackTrace in class java.lang.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.