Top Description Fields Constructors Methods
java.util

public non-sealed Class IllegalFormatPrecisionException

extends IllegalFormatException
Class Inheritance

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. If the precision is not representable by an int type, then the value Integer.MIN_VALUE will be used in the exception.
Since
1.5

Field Summary

Modifier and TypeField and Description
private int
p

private static final long

Constructor Summary

AccessConstructor and Description
public
IllegalFormatPrecisionException(int
The precision
p
)

Constructs an instance of this class with the specified precision.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

public int

Returns:

The precision
getPrecision
()

Returns the precision.

Field Detail

pback to summary
private int p
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.IllegalFormatException.serialVersionUID.

Annotations
@Serial

Constructor Detail

IllegalFormatPrecisionExceptionback to summary
public IllegalFormatPrecisionException(int p)

Constructs an instance of this class with the specified precision.

Parameters
p:int

The precision

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

getPrecisionback to summary
public int getPrecision()

Returns the precision. If the precision isn't representable by an int, then will return Integer.MIN_VALUE.

Returns:int

The precision