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: UnsupportedAttributeValueException.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 UnsupportedAttributeValueException extends
13: SyntaxErrorException {
14: private static final long serialVersionUID = -6852586489817324601L;
15:
16: String mTagType = null;
17: String mTagId = null;
18: String mAttributeName = null;
19: String mAttributeValue = null;
20:
21: public UnsupportedAttributeValueException(String templateName,
22: DocumentPosition errorLocation, String tagType,
23: String tagId, String attributeName, String attributeValue) {
24: super (templateName, errorLocation, "the " + attributeName
25: + " attribute value '" + attributeValue + "' of the "
26: + tagType + " tag '" + tagId + "' is not supported",
27: null);
28:
29: mTagType = tagType;
30: mTagId = tagId;
31: mAttributeName = attributeName;
32: mAttributeValue = attributeValue;
33: }
34:
35: public String getTagType() {
36: return mTagType;
37: }
38:
39: public String getTagId() {
40: return mTagId;
41: }
42:
43: public String getAttributeName() {
44: return mAttributeName;
45: }
46:
47: public String getAttributeValue() {
48: return mAttributeValue;
49: }
50: }
|