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: FlowLinkSpecificDataLinkDestIdSpecifiedException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class FlowLinkSpecificDataLinkDestIdSpecifiedException extends
11: EngineException {
12: private static final long serialVersionUID = -3645641138050695328L;
13:
14: private String mSiteDeclarationName = null;
15: private String mElementId = null;
16: private String mExitName = null;
17:
18: public FlowLinkSpecificDataLinkDestIdSpecifiedException(
19: String siteDeclarationName, String elementId,
20: String exitName) {
21: super (
22: "The site '"
23: + siteDeclarationName
24: + "' has a destination ID specified for a datalink of the flowlink that originates at the exit '"
25: + exitName
26: + "' of element '"
27: + elementId
28: + "'. This is redundant and can lead to errors.");
29:
30: mSiteDeclarationName = siteDeclarationName;
31: mElementId = elementId;
32: mExitName = exitName;
33: }
34:
35: public String getSiteDeclarationName() {
36: return mSiteDeclarationName;
37: }
38:
39: public String getElementId() {
40: return mElementId;
41: }
42:
43: public String getExitName() {
44: return mExitName;
45: }
46: }
|