R - The type of result of the method to be run.public final class Report<R> extends Object
| Modifier and Type | Method and Description |
|---|---|
List<Throwable> |
getCaught()
Returns a
List of all exceptions that occurred during reporting. |
<X extends Throwable> |
getCaught(Class<X> xClass,
Class<? extends X>... ignorable)
Returns a
List of all exceptions of a certain type that occurred during
reporting. |
List<R> |
list()
Returns a
List of all results that have accumulated during reporting. |
<X extends Throwable> |
reThrow(Class<X> xClass,
Class<? extends X>... ignorable)
Re-throws the first exception of a certain type that occurred during
reporting after all further exceptions of that type have been
added as suppressed.
|
Report<R> |
reThrowAny() |
int |
size() |
Stream<R> |
stream()
Returns a limited
Stream of all results that have accumulated during reporting. |
public final List<R> list()
List of all results that have accumulated during reporting.public Stream<R> stream()
Stream of all results that have accumulated during reporting.public final List<Throwable> getCaught()
List of all exceptions that occurred during reporting.@SafeVarargs public final <X extends Throwable> List<X> getCaught(Class<X> xClass, Class<? extends X>... ignorable)
List of all exceptions of a certain type that occurred during
reporting. Certain derived types can be excluded from the result.X - The type of exceptions to be listed.@SafeVarargs public final <X extends Throwable> Report<R> reThrow(Class<X> xClass, Class<? extends X>... ignorable) throws X extends Throwable
X - The type of exceptions to be processed.X extends Throwablepublic final int size()
Copyright © 2024 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.