01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: TerminatingUnopenedTagException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.template.exceptions;
09:
10: import com.uwyn.rife.datastructures.DocumentPosition;
11:
12: public class TerminatingUnopenedTagException extends
13: SyntaxErrorException {
14: private static final long serialVersionUID = 2455635260743666566L;
15:
16: private String mTagType = null;
17:
18: public TerminatingUnopenedTagException(String templateName,
19: DocumentPosition errorLocation, String tagType) {
20: super (
21: templateName,
22: errorLocation,
23: "a '"
24: + tagType
25: + "' tag is being terminated while it was never opened",
26: null);
27:
28: mTagType = tagType;
29: }
30:
31: public String getTagType() {
32: return mTagType;
33: }
34: }
|