KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > lib > TKTemplateSyntaxException


1 package com.teamkonzept.lib;
2
3 /**
4     Die TKTemplateSyntaxException faengt Fehler bei der Erstellung
5     der Syntaxstruktur eines Templates ab, welche durch die Instanziierung eines
6     Templateobjekts erzeugt wird. Sobald ein Syntaxobjekt nicht korrekt erzeugt
7     wurde, wird eine Fehlermeldung ausgegeben. Dies geshieht, wenn die Abbruchbedingung
8     (das entsprechende EndTag) nicht vorhanden ist.
9  * @author $Author: alex $
10  * @version $Revision: 1.9 $
11 */

12 public class TKTemplateSyntaxException extends Exception JavaDoc {
13     
14     public String JavaDoc templatePath;
15     public String JavaDoc what;
16     public String JavaDoc type;
17     public String JavaDoc info;
18
19     /**
20      * Konstruktor
21      *
22      * @param templatePath der Template Pfad
23      * @param what z.B. "WRONGEND" oder "NOEND"
24      * @param type der Tagtype, dessen End fehlt
25      * @param Info das label des Tags
26      */

27     public TKTemplateSyntaxException (String JavaDoc templatePath, String JavaDoc what, String JavaDoc type, String JavaDoc info) {
28         super("Syntax error (type \"" + what + "\") of tag " + type + ":" + info +
29             " in file \"" + templatePath + "\"");
30         this.templatePath = templatePath;
31         this.what = what;
32         this.type = type;
33         this.info = info;
34     }
35
36     public TKTemplateSyntaxException(String JavaDoc message)
37     {
38         super(message);
39     }
40 }//end class
41

42
Popular Tags