Name
IllegalArgumentException
Synopsis
Signals
an illegal argument to a method. See subclasses
IllegalThreadStateException
and
NumberFormatException
.
Figure 10-26. java.lang.IllegalArgumentException
public class IllegalArgumentException extends RuntimeException { // Public Constructors public IllegalArgumentException( ); 5.0 public IllegalArgumentException(Throwable cause); public IllegalArgumentException(String s); 5.0 public IllegalArgumentException(String message, Throwable cause); }
Subclasses
IllegalThreadStateException
,
NumberFormatException
,
java.nio.channels.IllegalSelectorException
,
java.nio.channels.UnresolvedAddressException
,
java.nio.channels.UnsupportedAddressTypeException
,
java.nio.charset.IllegalCharsetNameException
,
java.nio.charset.UnsupportedCharsetException
,
java.security.InvalidParameterException
,
java.util.IllegalFormatException
,
java.util.regex.PatternSyntaxException
Thrown By
Too many methods to list.
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.