Package org.apache.commons.text.lookup
Class IllegalArgumentExceptions
java.lang.Object
org.apache.commons.text.lookup.IllegalArgumentExceptions
Shorthands creating
IllegalArgumentException
instances using formatted strings.- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static IllegalArgumentException
Creates anIllegalArgumentException
with a message formatted withString.format(String,Object...)
.(package private) static IllegalArgumentException
Creates anIllegalArgumentException
with a message formatted withString.format(String,Object...)
.
-
Constructor Details
-
IllegalArgumentExceptions
private IllegalArgumentExceptions()No need to build instances.
-
-
Method Details
-
format
Creates anIllegalArgumentException
with a message formatted withString.format(String,Object...)
.- Parameters:
format
- SeeString.format(String,Object...)
args
- SeeString.format(String,Object...)
- Returns:
- an
IllegalArgumentException
with a message formatted withString.format(String,Object...)
-
format
Creates anIllegalArgumentException
with a message formatted withString.format(String,Object...)
.- Parameters:
t
- the throwable causeformat
- SeeString.format(String,Object...)
args
- SeeString.format(String,Object...)
- Returns:
- an
IllegalArgumentException
with a message formatted withString.format(String,Object...)
-