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: DataLinkInputRequiredException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class DataLinkInputRequiredException extends EngineException {
11: private static final long serialVersionUID = -8348069245133806777L;
12:
13: private String mSiteDeclarationName = null;
14: private String mElementId = null;
15: private String mDestinationId = null;
16: private boolean mSnapback = false;
17:
18: public DataLinkInputRequiredException(String siteDeclarationName,
19: String elementId, String destinationId, boolean snapback) {
20: super ("The site '"
21: + siteDeclarationName
22: + "' has no input defined for the "
23: + (!snapback ? "" : "snapback ")
24: + "datalink that originates at the element '"
25: + elementId
26: + "'"
27: + (null == destinationId ? ""
28: : " towards the element '" + destinationId
29: + "'")
30: + ", provide either a destinput or a destinbean.");
31:
32: mSiteDeclarationName = siteDeclarationName;
33: mElementId = elementId;
34: mDestinationId = destinationId;
35: mSnapback = snapback;
36: }
37:
38: public String getSiteDeclarationName() {
39: return mSiteDeclarationName;
40: }
41:
42: public String getElementId() {
43: return mElementId;
44: }
45:
46: public String getDestinationId() {
47: return mDestinationId;
48: }
49:
50: public boolean getSnapback() {
51: return mSnapback;
52: }
53: }
|