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 FormConstructor and Description |
---|
IllegalFormatPrecisionException(int p)
Constructs a new
IllegalFormatPrecisionException with specified
precision. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the extra information 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, toString
public IllegalFormatPrecisionException(int p)
IllegalFormatPrecisionException
with specified
precision.p
- the precision.public int getPrecision()
public String getMessage()
Throwable
Throwable
was created. Returns null
if no message was
provided at creation time.getMessage
in class Throwable
Throwable
's detail message.