/** * Execute the given action before throwing the exception. * * @param action Action to execute. * @param <TV1> Input type. * @param <TV2> Input type. * @param <TV3> Input type. * @param <TV4> Input type. * @param <TV5> Input type. * @return A new consumer with a listener action. */ default <TV1 extends V1, TV2 extends V2, TV3 extends V3, TV4 extends V4, TV5 extends V5> Consumer5<TV1, TV2, TV3, TV4, TV5> onFailure( java.util.function.Consumer<Throwable> action) { return onFailure(Throwable.class, action); }