Package org.apache.commons.text.lookup
Class IllegalArgumentExceptions
- java.lang.Object
-
- org.apache.commons.text.lookup.IllegalArgumentExceptions
-
final class IllegalArgumentExceptions extends Object
Shorthands creatingIllegalArgumentExceptioninstances using formatted strings.- Since:
- 1.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static IllegalArgumentExceptionformat(String format, Object... args)Creates anIllegalArgumentExceptionwith a message formatted withString.format(String,Object...).(package private) static IllegalArgumentExceptionformat(Throwable t, String format, Object... args)Creates anIllegalArgumentExceptionwith a message formatted withString.format(String,Object...).
-
-
-
Method Detail
-
format
static IllegalArgumentException format(String format, Object... args)
Creates anIllegalArgumentExceptionwith a message formatted withString.format(String,Object...).- Parameters:
format- SeeString.format(String,Object...)args- SeeString.format(String,Object...)- Returns:
- an
IllegalArgumentExceptionwith a message formatted withString.format(String,Object...)
-
format
static IllegalArgumentException format(Throwable t, String format, Object... args)
Creates anIllegalArgumentExceptionwith a message formatted withString.format(String,Object...).- Parameters:
t- the throwable causeformat- SeeString.format(String,Object...)args- SeeString.format(String,Object...)- Returns:
- an
IllegalArgumentExceptionwith a message formatted withString.format(String,Object...)
-
-