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: ContinuationsNotActiveException.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 continuations method has not been instrumented.
14: * <p>This is typically the sole method body of the methods that are present
15: * in a continuable support object.
16: *
17: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
18: * @version $Revision: 3813 $
19: * @since 1.6
20: */
21: public class ContinuationsNotActiveException extends RuntimeException
22: implements ControlFlowRuntimeException {
23: private static final long serialVersionUID = -7358516398081778097L;
24:
25: /**
26: * Instantiates a new exception.
27: *
28: * @since 1.6
29: */
30: public ContinuationsNotActiveException() {
31: super (
32: "Continuations are not active for this class method. This class hasn't been instrumented or is has been reloaded through hot-swap.");
33: }
34: }
|