java.util
Class IllegalFormatPrecisionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by java.util.IllegalFormatException
                      extended by 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

Constructor Summary
IllegalFormatPrecisionException(int p)
          Constructs a new IllegalFormatPrecisionException for the precision, p.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.