java.util

Class MissingFormatWidthException

public class MissingFormatWidthException extends IllegalFormatException

Thrown when the a format specification for a {@link Formatter} does not include a width for a value where one is required.

Since: 1.5

Constructor Summary
MissingFormatWidthException(String s)
Constructs a new MissingFormatWidthException for a format specification, s, which excludes a required width argument.
Method Summary
StringgetFormatSpecifier()
Returns the format specification.

Constructor Detail

MissingFormatWidthException

public MissingFormatWidthException(String s)
Constructs a new MissingFormatWidthException for a format specification, s, which excludes a required width 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.