R - The type of result of the method to be run.public final class Report<R> extends Object
| Modifier and Type | Method and Description |
|---|---|
long |
getDuration() |
List<R> |
getResults()
Returns a
List of all results that have accumulated during reporting. |
List<Throwable> |
getThrowables()
Returns a
List of all exceptions that occurred during reporting. |
<X extends Throwable> |
getThrowables(Class<X> xClass,
Class<? extends X>... ignorable)
Returns a
List of all exceptions of a certain type that occurred 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()
Re-throws the first
Error if any, or else the first Exception that occurred during
reporting after all further exceptions of that type have been
added as suppressed. |
<X extends Throwable> |
streamThrowables(Class<X> xClass,
Class<? extends X>... ignorable)
Returns a
Stream of all exceptions of a certain type that occurred during
reporting. |
public final List<R> getResults()
List of all results that have accumulated during reporting.public final List<Throwable> getThrowables()
List of all exceptions that occurred during reporting.@SafeVarargs public final <X extends Throwable> List<X> getThrowables(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> Stream<X> streamThrowables(Class<X> xClass, Class<? extends X>... ignorable)
Stream of all exceptions of a certain type that occurred during
reporting. Certain derived types can be excluded from the resulting Stream.X - The type of exceptions to be streamed.@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 Report<R> reThrowAny() throws Exception
Error if any, or else the first Exception that occurred during
reporting after all further exceptions of that type have been
added as suppressed.Exceptionpublic final long getDuration()
Copyright © 2022 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.