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: IncludeNotFoundException.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 IncludeNotFoundException extends ProcessingException {
13: private static final long serialVersionUID = -8132650494489046526L;
14:
15: private String mTemplateName = null;
16: private DocumentPosition mErrorLocation = null;
17: private String mIncluded = null;
18:
19: public IncludeNotFoundException(String templateName,
20: DocumentPosition errorLocation, String included) {
21: super (formatError(templateName, errorLocation,
22: "couldn't find the included template '" + included
23: + "'"));
24:
25: mTemplateName = templateName;
26: mErrorLocation = errorLocation;
27: mIncluded = included;
28: }
29:
30: public String getTemplateName() {
31: return mTemplateName;
32: }
33:
34: public DocumentPosition getErrorLocation() {
35: return mErrorLocation;
36: }
37:
38: public String getIncluded() {
39: return mIncluded;
40: }
41: }
|