diff --git a/src/main/java/no/digipost/DiggBase.java b/src/main/java/no/digipost/DiggBase.java index 8d8386d..63451f3 100644 --- a/src/main/java/no/digipost/DiggBase.java +++ b/src/main/java/no/digipost/DiggBase.java @@ -222,8 +222,8 @@ public static Stream close(AutoCloseable ... closeables) { /** * Create a stream which will yield the exceptions (if any) from invoking an {@link ThrowingConsumer action} on - * several {@code instances}. Consuming the stream will ensure that all instances will have - * the action invoked on them, and any exceptions happening will be available through the returned stream. + * several {@code instances}. Consuming the returned stream will ensure that all instances will have + * the action attempted on them, and any exceptions happening will be available through the returned stream. * * @param action the action to execute for each provided instance * @param instances the instances to act on with the provided {@code action}. @@ -239,8 +239,12 @@ public static Stream forceOnAll(ThrowingConsumerall instances will have - * the action invoked on them, and any exceptions happening will be available through the returned stream. + * several {@code instances}. This also includes exceptions thrown from traversing the given {@link Stream} + * of instances, i.e. should resolving an element from the {@code Stream} cause an exception, it will be caught and + * included in the returned {@code Stream}. + *

+ * Consuming the returned stream will ensure that all traversed instances will have + * the action attempted on them, and any exceptions happening will be available through the returned stream. * * @param action the action to execute for each provided instance * @param instances the instances to act on with the provided {@code action}.