APIdia Launch Partner
Top Description Fields Constructors Methods
java.util

public non-sealed Class IllegalFormatWidthException

extends IllegalFormatException
Class Inheritance

Unchecked exception thrown when the format width is a negative value other than -1 or is otherwise unsupported. If a given format width 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 static final long
private int
w

Constructor Summary

AccessConstructor and Description
public
IllegalFormatWidthException(int
The width
w
)

Constructs an instance of this class with the specified width.

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 width
getWidth
()

Returns the width.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.IllegalFormatException.serialVersionUID.

Annotations
@Serial
wback to summary
private int w

Constructor Detail

IllegalFormatWidthExceptionback to summary
public IllegalFormatWidthException(int w)

Constructs an instance of this class with the specified width.

Parameters
w:int

The width

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.

getWidthback to summary
public int getWidth()

Returns the width. If the width is not representable by an int, then returns Integer.MIN_VALUE.

Returns:int

The width