public class NoSuchElementException extends NoSuchElementException
NoSuchElementException by providing a constructor with format string.| Constructor and Description |
|---|
NoSuchElementException(String format,
Object... args)
Constructs a
NoSuchElementException, saving a reference to the error message for later retrieval by the
Throwable.getMessage() method. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NoSuchElementException(String format, Object... args)
NoSuchElementException, saving a reference to the error message for later retrieval by the
Throwable.getMessage() method.format - A format string as described in Format string syntaxargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero.
The maximum number of arguments is limited by the maximum dimension of a Java array as defined by
The Java™ Virtual Machine Specification. The behaviour on a null argument
depends on the conversion.FormatterCopyright © 2018. All rights reserved.