java.util

Class IllegalFormatWidthException

public class IllegalFormatWidthException extends IllegalFormatException

Thrown when the specified width for a {@link Formatter} argument is illegal. This may be because the number is a negative number (other than -1) or for some other reason.

Since: 1.5

Constructor Summary
IllegalFormatWidthException(int w)
Constructs a new IllegalFormatWidthException with the specified width, w.
Method Summary
intgetWidth()
Returns the illegal width.

Constructor Detail

IllegalFormatWidthException

public IllegalFormatWidthException(int w)
Constructs a new IllegalFormatWidthException with the specified width, w.

Parameters: w the illegal width.

Method Detail

getWidth

public int getWidth()
Returns the illegal width.

Returns: the illegal width.