KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > compiler > InvalidFontSpec


1 /* *****************************************************************************
2  * InvalidFontSpec.java
3 * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
10 package org.openlaszlo.compiler;
11 import java.io.File JavaDoc;
12 import org.jdom.Element;
13
14
15 /** Represents an exception when an attribute value for font/size/style cannot be understood.
16  *
17  * @author Henry Minsky
18  */

19 public class InvalidFontSpec extends CompilationError {
20
21     public InvalidFontSpec() {
22         super("INVALID FONTSPEC");
23         System.out.println("new InvalidFontSpec ()");
24  }
25
26     public InvalidFontSpec(String JavaDoc message, Element element) {
27         super(message, element);
28         System.out.println("new InvalidFontSpec ("+message+", "+element.getName()+")");
29     }
30
31 }
32
Popular Tags