package com.teamkonzept.lib;
/**
Die TKTemplateSyntaxException faengt Fehler bei der Erstellung
der Syntaxstruktur eines Templates ab, welche durch die Instanziierung eines
Templateobjekts erzeugt wird. Sobald ein Syntaxobjekt nicht korrekt erzeugt
wurde, wird eine Fehlermeldung ausgegeben. Dies geshieht, wenn die Abbruchbedingung
(das entsprechende EndTag) nicht vorhanden ist.
* @author $Author: alex $
* @version $Revision: 1.9 $
*/
public class TKTemplateSyntaxException extends Exception {
public String templatePath;
public String what;
public String type;
public String info;
/**
* Konstruktor
*
* @param templatePath der Template Pfad
* @param what z.B. "WRONGEND" oder "NOEND"
* @param type der Tagtype, dessen End fehlt
* @param Info das label des Tags
*/
public TKTemplateSyntaxException (String templatePath, String what, String type, String info) {
super("Syntax error (type \"" + what + "\") of tag " + type + ":" + info +
" in file \"" + templatePath + "\"");
this.templatePath = templatePath;
this.what = what;
this.type = type;
this.info = info;
}
public TKTemplateSyntaxException(String message)
{
super(message);
}
}//end class
|