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: AttributeNotEndedException.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 AttributeNotEndedException extends SyntaxErrorException {
13: private static final long serialVersionUID = 8866294323664003598L;
14:
15: private String mTagType = null;
16: private String mAttributeName = null;
17:
18: public AttributeNotEndedException(String templateName,
19: DocumentPosition errorLocation, String tagType,
20: String attributeName) {
21: super (templateName, errorLocation, "the " + attributeName
22: + " attribute of a " + tagType + " tag was not ended",
23: null);
24:
25: mTagType = tagType;
26: mAttributeName = attributeName;
27: }
28:
29: public String getTagType() {
30: return mTagType;
31: }
32:
33: public String getAttributeName() {
34: return mAttributeName;
35: }
36: }
|