public class WrappedException extends RuntimeException
| Constructor and Description |
|---|
WrappedException(String message,
Throwable cause)
Initializes a new instance with the given message and cause.
|
WrappedException(Throwable cause)
Initializes a new instance with the given cause and its
message. |
| Modifier and Type | Method and Description |
|---|---|
<X extends Throwable> |
reThrowCauseAs(Class<X> xClass) |
<X extends Throwable> |
reThrowCauseIf(Predicate<? super Throwable> condition,
Function<? super Throwable,X> mapping) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WrappedException(String message, Throwable cause)
public final <X extends Throwable> WrappedException reThrowCauseIf(Predicate<? super Throwable> condition, Function<? super Throwable,X> mapping) throws X extends Throwable
X extends Throwablepublic final <X extends Throwable> WrappedException reThrowCauseAs(Class<X> xClass) throws X extends Throwable
X extends ThrowableCopyright © 2023 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.