java.util

Class IllegalFormatPrecisionException

public class IllegalFormatPrecisionException extends IllegalFormatException

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

Since: 1.5

Constructor Summary
IllegalFormatPrecisionException(int p)
Constructs a new IllegalFormatPrecisionException for the precision, p.
Method Summary
intgetPrecision()
Returns the illegal precision.

Constructor Detail

IllegalFormatPrecisionException

public IllegalFormatPrecisionException(int p)
Constructs a new IllegalFormatPrecisionException for the precision, p.

Parameters: p the illegal precision.

Method Detail

getPrecision

public int getPrecision()
Returns the illegal precision.

Returns: the illegal precision.