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: CallTargetNotFoundException.java 3813 2007-06-25 18:22:03Z gbevin $
07: */
08: package com.uwyn.rife.continuations.exceptions;
09:
10: import com.uwyn.rife.tools.exceptions.ControlFlowRuntimeException;
11:
12: /**
13: * Thrown when a call target couldn't be resolved to a proper
14: * {@code ContinuableObject}.
15: *
16: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
17: * @version $Revision: 3813 $
18: * @since 1.6
19: */
20: public class CallTargetNotFoundException extends RuntimeException
21: implements ControlFlowRuntimeException {
22: private static final long serialVersionUID = 8455201993543302381L;
23:
24: /**
25: * Instantiates a new exception.
26: *
27: * @param target the original call target
28: * @param cause the cause of the retrieval failure; or
29: * <p>{@code null} if there was no exception cause
30: * @since 1.6
31: */
32: public CallTargetNotFoundException(Object target, Throwable cause) {
33: super (
34: "The ContinuableObject that corresponds to the call target "
35: + target + " couldn't be found.", cause);
36: }
37: }
|