public class IllegalFormatPrecisionException extends IllegalFormatException
IllegalFormatPrecisionException will be thrown if the precision is
a negative other than -1 or in other cases where precision is not supported.RuntimeException,
Serialized Form| Constructor and Description |
|---|
IllegalFormatPrecisionException(int p)
Constructs a new
IllegalFormatPrecisionException with specified
precision. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Returns the detail message which was provided when this
Throwable was created. |
int |
getPrecision()
Returns the precision associated with the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IllegalFormatPrecisionException(int p)
IllegalFormatPrecisionException with specified
precision.p - the precision.public int getPrecision()
public String getMessage()
ThrowableThrowable was created. Returns null if no message was
provided at creation time.getMessage in class Throwable