(String format, Consumer<FormatArgs> argsProvider)
| 172 | } |
| 173 | |
| 174 | private static Supplier<String> message(String format, Consumer<FormatArgs> argsProvider) { |
| 175 | final ObjectWrapper<Object[]> args = new ObjectWrapper<>(); |
| 176 | argsProvider.accept(args::accept); |
| 177 | return () -> String.format(format, args.get()); |
| 178 | } |
| 179 | |
| 180 | private Exceptions() { |
| 181 | } |
no test coverage detected