Class Composite<T,E extends Exception>

java.lang.Object
org.dmfs.jems2.fragileprocedure.Composite<T,E>
All Implemented Interfaces:
FragileProcedure<T,E>

public final class Composite<T,E extends Exception> extends Object implements FragileProcedure<T,E>
A FragileProcedure composed of other procedures. Note, this FragileProcedure makes no attempt at calling more delegates after the first one threw an Exception.

Example


 new Composite<>(System.out::println, Logger::info).process("log message");
 
Prints "log message" to the console and to the log.