java.io.Serializable
public class ContextException
extends java.lang.Exception
Constructor | Description |
---|---|
ContextException() |
Modifier and Type | Method | Description |
---|---|---|
static java.util.function.Consumer<java.lang.Throwable> |
here(java.util.function.Consumer<? super java.lang.Throwable> acceptor) |
Creates a wrapping
Consumer for
the provided target. |
static java.util.function.Consumer<java.lang.Throwable> |
herePrintingTrace() |
Creates a failure consumer that appends a context cause
before printing the stack trace using
Throwable.printStackTrace() . |
@Nonnull public static java.util.function.Consumer<java.lang.Throwable> herePrintingTrace()
Throwable.printStackTrace()
.
here(Throwable::printStackTrace)
Throwable::printStackTrace
@Nonnull public static java.util.function.Consumer<java.lang.Throwable> here(@Nonnull java.util.function.Consumer<? super java.lang.Throwable> acceptor)
Consumer
for
the provided target.acceptor
- The end-target for the throwable