Top Description Fields Constructors Methods
java.util

pack-priv final Class IllegalFormatArgumentIndexException

extends IllegalFormatException
Class Inheritance

Unchecked exception thrown when the argument index is not within the valid range of supported argument index values. If an index value isn't representable by an int type, then the value Integer.MIN_VALUE will be used in the exception.
Since
16

Field Summary

Modifier and TypeField and Description
private final int
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
IllegalFormatArgumentIndexException(int
The value of a corresponding illegal argument index.
index
)

Constructs an instance of this class with the specified argument index

Method Summary

Modifier and TypeMethod and Description
pack-priv int

Returns:

the illegal index value
getIndex
()

Gets the value of the illegal index.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Field Detail

illegalIndexback to summary
private final int illegalIndex
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.IllegalFormatException.serialVersionUID.

Annotations
@Serial

Constructor Detail

IllegalFormatArgumentIndexExceptionback to summary
pack-priv IllegalFormatArgumentIndexException(int index)

Constructs an instance of this class with the specified argument index

Parameters
index:int

The value of a corresponding illegal argument index.

Method Detail

getIndexback to summary
pack-priv int getIndex()

Gets the value of the illegal index. Returns Integer.MIN_VALUE if the illegal index is not representable by an int.

Returns:int

the illegal index value

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).

Annotations
@Override