Build 1.0_r1(from source)

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

The unchecked exception will be thrown out when the precision is a negative other than -1, or the conversion does not support a precision or other cases when the precision is not supported.

See Also:
Serialized Form

Constructor Summary
IllegalFormatPrecisionException(int p)
          Constructs a IllegalFormatPrecisionException with specified precision.
 
Method Summary
 String getMessage()
          Returns the message of the exception.
 int getPrecision()
          Returns the precision associated with the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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 IllegalFormatPrecisionException with specified precision.

Parameters:
p - The precision.
Method Detail

getPrecision

public int getPrecision()
Returns the precision associated with the exception.

Returns:
the precision.

getMessage

public String getMessage()
Returns the message of the exception.

Overrides:
getMessage in class Throwable
Returns:
The message of the exception.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature