@Deprecated public final class Wrapping extends Object
| Modifier and Type | Method and Description |
|---|---|
static <X1 extends Throwable,X2 extends Throwable> |
method(BiFunction<String,X1,X2> biFunction)
Deprecated.
Results in a wrapping method such as is required in some places in this library to wrap an exception in another
exception.
|
static <X1 extends Throwable,X2 extends Throwable> |
method(String message,
BiFunction<String,X1,X2> biFunction)
Deprecated.
Results in a wrapping method such as is required in some places in this library to wrap an exception in another
exception.
|
static <X1 extends Throwable,X2 extends Throwable> |
varying(Function<String,X2> function)
Deprecated.
Results in a wrapping method such as is required in some places in this library to wrap an exception in another
exception.
|
static <X1 extends Throwable,X2 extends Throwable> |
varying(String message,
Function<String,X2> function)
Deprecated.
Results in a wrapping method such as is required in some places in this library to wrap an exception in another
exception.
|
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> method(BiFunction<String,X1,X2> biFunction)
This variant is mainly intended to use a typical constructor of an exception, which requires two parameters, namely the message text and the causing exception (see below). The message text is taken from the causing exception so that the resulting method only needs the causing exception as a parameter.
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> method(String message, BiFunction<String,X1,X2> biFunction)
This variant is intended to use a predefined message text and a typical constructor of an exception, which requires two parameters, namely the message text and the causing exception (see below) so that the resulting method only needs the causing exception as a parameter.
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> varying(Function<String,X2> function)
This variant is mainly intended to use a typical constructor of an exception, which requires a single parameter, namely the message text (see below). The causing exception is set just after the construction of the wrapping exception. The message text is taken from the causing exception so that the resulting method only needs the causing exception as a parameter.
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> varying(String message, Function<String,X2> function)
This variant is intended to use a predefined message text and a typical constructor of an exception, which requires a single parameter, namely the message text (see below). The causing exception is set just after the construction of the wrapping exception so that the resulting method only needs the causing exception as a parameter.
Copyright © 2023 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.