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: AmbiguousTemplateNameException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.template.exceptions;
09:
10: public class AmbiguousTemplateNameException extends ProcessingException {
11: private static final long serialVersionUID = -1908700295942542497L;
12:
13: private String mName = null;
14:
15: public AmbiguousTemplateNameException(String name) {
16: super (
17: "The template '"
18: + name
19: + "' can't be looked up in a predictable way. You can either provide template names as class names or as file names and the correct one will be picked up. However by asking for '"
20: + name
21: + "' this can't be done for certain. To access this template, look it up as a class name. This prevents you from having to provide the file extension.");
22: mName = name;
23: }
24:
25: public String getName() {
26: return mName;
27: }
28: }
|