Class FontException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FontLoadingException, InvalidFontException, UnsupportedFontException

public abstract class FontException extends FontEngineException
Generally thrown when a font is incorrect in a way that cannot be worked around.

Synchronization

This class has the same threadsafety guarantees as java.lang.Exception.

See Also:
  • Constructor Details

    • FontException

      public FontException()
    • FontException

      public FontException(Font font)
    • FontException

      public FontException(String message)
    • FontException

      public FontException(String message, Font font)
    • FontException

      public FontException(String message, Throwable cause)
    • FontException

      public FontException(String message, Throwable cause, Font font)
    • FontException

      public FontException(Throwable cause)
    • FontException

      public FontException(Throwable cause, Font font)
  • Method Details

    • getFont

      public Font getFont()
      Returns:
      the invalid font that caused the exception
    • initFont

      public void initFont(Font font)
      Parameters:
      font - the invalid font that caused the exception
    • toString

      public String toString()
      Overrides:
      toString in class Throwable