java.util

Class MissingFormatArgumentException

public class MissingFormatArgumentException extends IllegalFormatException

Thrown when the a format specification for a {@link Formatter} refers to an argument that is non-existent, or an argument index references a non-existent argument.

Since: 1.5

Constructor Summary
MissingFormatArgumentException(String s)
Constructs a new MissingFormatArgumentException for a format specification, s, which refers to a non-existent argument.
Method Summary
StringgetFormatSpecifier()
Returns the format specification.

Constructor Detail

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.

Method Detail

getFormatSpecifier

public String getFormatSpecifier()
Returns the format specification.

Returns: the format specification.