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: ExitTargetUrlMissingException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class ExitTargetUrlMissingException extends EngineException {
11: private static final long serialVersionUID = 1308469860863411697L;
12:
13: private String mSourceDeclarationName = null;
14: private String mExitName = null;
15: private String mTargetDeclarationName = null;
16:
17: public ExitTargetUrlMissingException(String sourceDeclarationName,
18: String exitName, String targetDeclarationName) {
19: super (
20: "The exit '"
21: + exitName
22: + "' of the element '"
23: + sourceDeclarationName
24: + "' has a flow link to the element '"
25: + targetDeclarationName
26: + "'. The latter hasn't been mapped to an URL in the site structure, so it's impossible to generate a direct URL for the exit. Should the flowlink point to another element in your site, then you're probably in an inheritance structure and the element without an URL is the actual target of the request. Either register is with an URL or cancel the inheritance in the flowlink.");
27:
28: mSourceDeclarationName = sourceDeclarationName;
29: mExitName = exitName;
30: mTargetDeclarationName = targetDeclarationName;
31: }
32:
33: public String getSourceDeclarationName() {
34: return mSourceDeclarationName;
35: }
36:
37: public String getExitName() {
38: return mExitName;
39: }
40:
41: public String getTargetDeclarationName() {
42: return mTargetDeclarationName;
43: }
44: }
|