TKTemplateSyntaxException.java :  » Content-Management-System » webman » com » teamkonzept » lib » Java Open Source

Java Open Source » Content Management System » webman 
webman » com » teamkonzept » lib » TKTemplateSyntaxException.java
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

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.