1. /*
  2. * @(#)FontFormatException.java 1.8 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt;
  8. /**
  9. * Thrown by method createFont in the <code>Font</code> class to indicate
  10. * that the specified font is bad.
  11. *
  12. * @author Parry Kejriwal
  13. * @version 1.8, 12/19/03
  14. * @see java.awt.Font
  15. * @since 1.3
  16. */
  17. public
  18. class FontFormatException extends Exception {
  19. /**
  20. * Report a FontFormatException for the reason specified.
  21. * @param reason a <code>String</code> message indicating why
  22. * the font is not accepted.
  23. */
  24. public FontFormatException(String reason) {
  25. super (reason);
  26. }
  27. }