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: DataLinkBeanErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class DataLinkBeanErrorException extends EngineException {
11: private static final long serialVersionUID = -7866308716224142324L;
12:
13: private String mSiteDeclarationName = null;
14: private String mElementId = null;
15: private String mDestinationId = null;
16: private boolean mSnapback = false;
17: private String mOutBean = null;
18: private String mInBean = null;
19:
20: public DataLinkBeanErrorException(String siteDeclarationName,
21: String outbean, String elementId, String destinationId,
22: boolean snapback, String inbean, Throwable cause) {
23: super (
24: "The site '"
25: + siteDeclarationName
26: + "' has a "
27: + (!snapback ? "" : "snapback ")
28: + "datalink that originates at the element '"
29: + elementId
30: + "'"
31: + (null == destinationId ? ""
32: : " towards the element'"
33: + destinationId + "' ")
34: + " and transfers the properties of outbean '"
35: + outbean
36: + "' towards inbean '"
37: + inbean
38: + "'. An unexpected error occurred during the processing of these beans.",
39: cause);
40:
41: mSiteDeclarationName = siteDeclarationName;
42: mOutBean = outbean;
43: mElementId = elementId;
44: mDestinationId = destinationId;
45: mSnapback = snapback;
46: mInBean = inbean;
47: }
48:
49: public String getSiteDeclarationName() {
50: return mSiteDeclarationName;
51: }
52:
53: public String getElementId() {
54: return mElementId;
55: }
56:
57: public String getDestinationId() {
58: return mDestinationId;
59: }
60:
61: public boolean getSnapback() {
62: return mSnapback;
63: }
64:
65: public String getOutBean() {
66: return mOutBean;
67: }
68:
69: public String getInBean() {
70: return mInBean;
71: }
72: }
|