Class Wrapping
-
Method Summary
Modifier and TypeMethodDescriptionmethod(String message, BiFunction<? super String, ? super X1, ? extends X2> biFunction) Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.method(BiFunction<? super String, ? super X1, ? extends X2> biFunction) Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.
-
Method Details
-
method
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> method(BiFunction<? super String, ? super X1, ? extends X2> biFunction) Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.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.
- See Also:
-
method
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> method(String message, BiFunction<? super String, ? super X1, ? extends X2> biFunction) Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.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.
- See Also:
-
varying
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> varying(Function<? super String, ? extends X2> function) Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.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.
- See Also:
-
varying
public static <X1 extends Throwable,X2 extends Throwable> Function<X1,X2> varying(String message, Function<? super String, ? extends X2> function) Results in a wrapping method such as is required in some places in this library to wrap an exception in another exception.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.
- See Also:
-