APIdia Launch Partner
Top Description Fields Constructors
java.awt

public Class FontFormatException

extends Exception
Class Inheritance
Imports
java.io.Serial

Thrown by method createFont in the Font class to indicate that the specified font is bad.
Author
Parry Kejriwal
Since
1.3
See Also
java.awt.Font

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Use serialVersionUID from JDK 1.6 for interoperability.

Constructor Summary

AccessConstructor and Description
public
FontFormatException(String
a String message indicating why the font is not accepted.
reason
)

Report a FontFormatException for the reason specified.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Use serialVersionUID from JDK 1.6 for interoperability.

Annotations
@Serial

Constructor Detail

FontFormatExceptionback to summary
public FontFormatException(String reason)

Report a FontFormatException for the reason specified.

Parameters
reason:String

a String message indicating why the font is not accepted.