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: ElementDeclarationNameMissingException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class ElementDeclarationNameMissingException extends
11: EngineException {
12: static final long serialVersionUID = 424012397939593175L;
13:
14: private String mSiteDeclarationName = null;
15: private String mId = null;
16: private String mUrl = null;
17: private String mImplementation = null;
18:
19: public ElementDeclarationNameMissingException(
20: String siteDeclarationName, String id, String url,
21: String implementation, Throwable cause) {
22: super (
23: "The declaration of "
24: + (null == id ? (null == url ? (null == implementation ? "an element"
25: : "element with implementation '"
26: + implementation + "'")
27: : "element with url '" + url + "'")
28: : "element with id '" + id + "'")
29: + " in site '" + siteDeclarationName
30: + "' is missing.", cause);
31:
32: mSiteDeclarationName = siteDeclarationName;
33: mId = id;
34: mUrl = url;
35: mImplementation = implementation;
36: }
37:
38: public String getSiteDeclarationName() {
39: return mSiteDeclarationName;
40: }
41:
42: public String getId() {
43: return mId;
44: }
45:
46: public String getUrl() {
47: return mUrl;
48: }
49:
50: public String getImplementation() {
51: return mImplementation;
52: }
53: }
|