Hi All:
We have code like:
throw new IllegalArgumentException(String.format("Minimum abbreviation
width is %d", minAbbrevWidth));
and I use this pattern a lot.
I would like to short cut this as follows:
throw IllegalArgumentExceptions.format("Minimum abbreviation width is %d",
minAbbrevWidth);
Hi Gary,
we already have Validate#isTrue(boolean expression, String message,
Object... values), which throws an IllegalArgumentException when the
expression is false.
Cheers,
Pascal
Am 12.01.2018 um 18:30 schrieb Gary Gregory:
Hi All:
We have code like:
throw new IllegalArgumentException(
On Fri, Jan 12, 2018 at 10:45 AM, Pascal Schumacher <
pascalschumac...@gmx.net> wrote:
> Hi Gary,
>
> we already have Validate#isTrue(boolean expression, String message,
> Object... values), which throws an IllegalArgumentException when the
> expression is false.
>
Ah, but that is no good IMO sin