java.util

Class IllegalFormatPrecisionException

Implemented Interfaces:
Serializable

public class IllegalFormatPrecisionException
extends IllegalFormatException

Unchecked exception thrown when the precision is a negative value other than -1, the conversion does not support a precision, or the value is otherwise unsupported.
Since:
1.5
See Also:
Serialized Form

Constructor Summary

IllegalFormatPrecisionException(int p)
Constructs an instance of this class with the specified precision.

Method Summary

String
getMessage()
int
getPrecision()
Returns the 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, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

IllegalFormatPrecisionException

public IllegalFormatPrecisionException(int p)
Constructs an instance of this class with the specified precision.
Parameters:
p - The precision
Usages and Demos :

View More Examples of IllegalFormatPrecisionException(int p)
   1:     public void assertNoPrecision() {
   2:         if (precision != -1) throw new IllegalFormatPrecisionException(precision);
   3:     }
   4: 
   5:     public void assertNoWidth() {

View Full Code Here

Method Details

getMessage

public String getMessage()
Overrides:
getMessage in interface Throwable

getPrecision

public int getPrecision()
Returns the precision
Returns:
The precision