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: DataLinkUnknownSrcOutbeanException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class DataLinkUnknownSrcOutbeanException extends EngineException {
11: private static final long serialVersionUID = 1146826772273924406L;
12:
13: private String mSiteDeclarationName = null;
14: private String mSrcOutbean = null;
15: private String mElementId = null;
16: private String mDestinationId = null;
17: private boolean mSnapback = false;
18:
19: public DataLinkUnknownSrcOutbeanException(
20: String siteDeclarationName, String srcoutbean,
21: String elementId, String destinationId, boolean snapback) {
22: super ("The site '"
23: + siteDeclarationName
24: + "' references an unknown source element outbean '"
25: + srcoutbean
26: + "' in the "
27: + (!snapback ? "" : "snapback ")
28: + "datalink that originates at the element '"
29: + elementId
30: + "'"
31: + (null == destinationId ? "" : " towards the element'"
32: + destinationId + "'") + ".");
33:
34: mSiteDeclarationName = siteDeclarationName;
35: mSrcOutbean = srcoutbean;
36: mElementId = elementId;
37: mDestinationId = destinationId;
38: mSnapback = snapback;
39: }
40:
41: public String getSiteDeclarationName() {
42: return mSiteDeclarationName;
43: }
44:
45: public String getSrcOutbean() {
46: return mSrcOutbean;
47: }
48:
49: public String getElementId() {
50: return mElementId;
51: }
52:
53: public String getDestinationId() {
54: return mDestinationId;
55: }
56:
57: public boolean getSnapback() {
58: return mSnapback;
59: }
60: }
|