java.util
Class IllegalFormatPrecisionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.IllegalFormatPrecisionException
- All Implemented Interfaces:
- Serializable
public class IllegalFormatPrecisionException
- extends IllegalFormatException
Thrown when the specified precision for a 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
- See Also:
- Serialized Form
Method Summary |
int |
getPrecision()
Returns the illegal precision. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
IllegalFormatPrecisionException
public IllegalFormatPrecisionException(int p)
- Constructs a new
IllegalFormatPrecisionException
for the precision, p
.
- Parameters:
p
- the illegal precision.
getPrecision
public int getPrecision()
- Returns the illegal precision.
- Returns:
- the illegal precision.