java.util
public class IllegalFormatPrecisionException extends IllegalFormatException
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.Constructor and Description |
---|
IllegalFormatPrecisionException(int p)
Constructs a new
IllegalFormatPrecisionException
for the precision, p . |
Modifier and Type | Method and Description |
---|---|
int |
getPrecision()
Returns the illegal precision.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllegalFormatPrecisionException(int p)
IllegalFormatPrecisionException
for the precision, p
.p
- the illegal precision.public int getPrecision()