01: /* *****************************************************************************
02: * InvalidFontSpec.java
03: * ****************************************************************************/
04:
05: /* J_LZ_COPYRIGHT_BEGIN *******************************************************
06: * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
07: * Use is subject to license terms. *
08: * J_LZ_COPYRIGHT_END *********************************************************/
09:
10: package org.openlaszlo.compiler;
11:
12: import java.io.File;
13: import org.jdom.Element;
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(
24: /* (non-Javadoc)
25: * @i18n.test
26: * @org-mes="new InvalidFontSpec ()"
27: */
28: org.openlaszlo.i18n.LaszloMessages.getMessage(
29: InvalidFontSpec.class.getName(), "051018-28"));
30: }
31:
32: public InvalidFontSpec(String message, Element element) {
33: super (message, element);
34: System.out.println(
35: /* (non-Javadoc)
36: * @i18n.test
37: * @org-mes="new InvalidFontSpec (" + p[0] + ", " + p[1] + ")"
38: */
39: org.openlaszlo.i18n.LaszloMessages.getMessage(
40: InvalidFontSpec.class.getName(), "051018-40",
41: new Object[] { message, element.getName() }));
42: }
43:
44: }
|