(Function<? super String, ? extends E> fn, String format,
Object... args)
| 40 | } |
| 41 | |
| 42 | public static <E extends Exception> E create(Function<? super String, ? extends E> fn, String format, |
| 43 | Object... args) { |
| 44 | return create(fn, () -> String.format(format, args)); |
| 45 | } |
| 46 | |
| 47 | public static <E extends Exception, C extends Throwable> E create( |
| 48 | BiFunction<? super String, ? super C, ? extends E> fn, C cause, String format, Object... args) { |