java.util
Class MissingFormatArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.MissingFormatArgumentException
- All Implemented Interfaces:
- Serializable
public class MissingFormatArgumentException
- extends IllegalFormatException
Thrown when the a format specification for a Formatter
refers to an argument that is non-existent, or an argument index
references a non-existent argument.
- Since:
- 1.5
- See Also:
- Serialized Form
Constructor Summary |
MissingFormatArgumentException(String s)
Constructs a new MissingFormatArgumentException
for a format specification, s , which refers
to a non-existent argument. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MissingFormatArgumentException
public MissingFormatArgumentException(String s)
- Constructs a new
MissingFormatArgumentException
for a format specification, s
, which refers
to a non-existent argument.
- Parameters:
s
- the format specification.
- Throws:
NullPointerException
- if s
is null.
getFormatSpecifier
public String getFormatSpecifier()
- Returns the format specification.
- Returns:
- the format specification.