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: AttributeWronglyEndedException.java 3737 2007-05-08 01:48:00Z gbevin $
07: */
08: package com.uwyn.rife.template.exceptions;
09:
10: import com.uwyn.rife.datastructures.DocumentPosition;
11:
12: public class AttributeWronglyEndedException extends
13: SyntaxErrorException {
14: private static final long serialVersionUID = -7697178038103069291L;
15:
16: private String mTagType = null;
17: private String mAttributeName = null;
18:
19: public AttributeWronglyEndedException(String templateName,
20: DocumentPosition errorLocation, String tagType,
21: String attributeName) {
22: super (
23: templateName,
24: errorLocation,
25: "the "
26: + attributeName
27: + " attribute of a "
28: + tagType
29: + " tag was ended with a delimiter while none was used to start it",
30: null);
31:
32: mTagType = tagType;
33: mAttributeName = attributeName;
34: }
35:
36: public String getTagType() {
37: return mTagType;
38: }
39:
40: public String getAttributeName() {
41: return mAttributeName;
42: }
43: }
|