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: UnsupportedNestedTagException.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 UnsupportedNestedTagException extends SyntaxErrorException {
13: private static final long serialVersionUID = -5618118403866546573L;
14:
15: private String mTagType = null;
16: private String mTagId = null;
17:
18: public UnsupportedNestedTagException(String templateName,
19: DocumentPosition errorLocation, String tagType, String tagId) {
20: super (templateName, errorLocation, "the " + tagType + " tag '"
21: + tagId + "' contains a nested " + tagType + " tag",
22: null);
23:
24: mTagType = tagType;
25: mTagId = tagId;
26: }
27:
28: public String getTagType() {
29: return mTagType;
30: }
31:
32: public String getTagId() {
33: return mTagId;
34: }
35: }
|