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: UrlExistsException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class UrlExistsException extends EngineException {
11: private static final long serialVersionUID = 6391041558659184980L;
12:
13: private String mNewElementId = null;
14: private String mUrl = null;
15:
16: public UrlExistsException(String newElementId, String url,
17: String existingElementId) {
18: super ("The element '" + newElementId
19: + "' tried to register the url '" + url
20: + "' which is already registered to element '"
21: + existingElementId + "'.");
22:
23: mUrl = url;
24: }
25:
26: public String getNewElementId() {
27: return mNewElementId;
28: }
29:
30: public String getUrl() {
31: return mUrl;
32: }
33: }
|