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: FlowLinkTargetRequiredException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class FlowLinkTargetRequiredException extends EngineException {
11: private static final long serialVersionUID = 3846307205481834149L;
12:
13: private String mSiteDeclarationName = null;
14: private String mElementId = null;
15: private String mExitName = null;
16:
17: public FlowLinkTargetRequiredException(String siteDeclarationName,
18: String elementId, String exitName) {
19: super (
20: "The site '"
21: + siteDeclarationName
22: + "' has no target defined for the flowlink that originates at the exit '"
23: + exitName
24: + "' of element '"
25: + elementId
26: + "', point it to an element id or make it snap back.");
27:
28: mSiteDeclarationName = siteDeclarationName;
29: mElementId = elementId;
30: mExitName = exitName;
31: }
32:
33: public String getSiteDeclarationName() {
34: return mSiteDeclarationName;
35: }
36:
37: public String getElementId() {
38: return mElementId;
39: }
40:
41: public String getExitName() {
42: return mExitName;
43: }
44: }
|