| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
Revision.of(T subject)
Returns a new instance to review and handle a given exception.
|
<X extends Throwable> |
Revision.reThrow(Class<X> xClass)
Rethrows the associated exception if it matches the given exception type.
|
<X extends Throwable> |
Revision.throwIf(Predicate<? super T> condition,
Function<? super T,X> mapping)
Applies a given
mapping to the associated exception if the given
condition applies and throws the result, otherwise this Revision will be returned. |
Copyright © 2024 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.