Unchecked exception thrown when an attempt is made to register a channel
with a selector that was not created by the provider that created the
channel.
Unchecked exception thrown when path string cannot be converted into a
Path because the path string contains invalid characters, or
the path string is invalid for other file system specific reasons.
Thrown to indicate that the application has attempted to convert
a string to one of the numeric types, but that the string does not
have the appropriate format.
Unchecked exception thrown when an attempt is made to invoke a method on an
object created by one file system provider with a parameter created by a
different file system provider.
Unchecked exception thrown when the precision is a negative value other than
-1, the conversion does not support a precision, or the value is
otherwise unsupported.
Unchecked exception thrown when there is a format specifier which does not
have a corresponding argument or if an argument index refers to an argument
that does not exist.
Constructs a new exception with the specified cause and a detail
message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause).
Returns an array containing all of the exceptions that were
suppressed, typically by the try-with-resources
statement, in order to deliver this exception.
Constructs an IllegalArgumentException with the
specified detail message.
Parameters
s
the detail message.
public
IllegalArgumentException(String message, Throwable cause)
Constructs a new exception with the specified detail message and
cause.
Note that the detail message associated with cause is
not automatically incorporated in this exception's detail
message.
Parameters
message
the detail message (which is saved for later retrieval
by the Throwable.getMessage() method).
cause
the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value
is permitted, and indicates that the cause is nonexistent or
unknown.)
Constructs a new exception with the specified cause and a detail
message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause).
This constructor is useful for exceptions that are little more than
wrappers for other throwables (for example, PrivilegedActionException).
Parameters
cause
the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["`IllegalArgumentException` is a subclass of `RuntimeException` indicating an illegal or inappropriate argument was passed to a method. It has direct subclasses like `IllegalCharsetNameException` and `NumberFormatException`, representing various argument-related errors. The indirect subclasses, including `DuplicateFormatFlagsException` and `UnknownFormatFlagsException`, primarily deal with formatting-related errors. `IllegalArgumentException` can be constructed with or without a detail message, or with a cause. It inherits methods to manage and access exception details, stack traces, and causes.\n"]]