1 /*
2 * $Id: StateTransitionException.java 1428 2010-11-02 15:15:10Z hoheisel $
3 *
4 * Copyright (c) 2005, The K-Wf Grid Consortium
5 * Fraunhofer Institute for Computer Architecture and Software Technology
6 * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
7 */
8
9 package net.kwfgrid.gwes.exception;
10
11 /**
12 * Signals that the state transition of the workflow or activity is invalid.
13 * @author Andreas Hoheisel
14 * (<a href="http://www.andreas-hoheisel.de">www.andreas-hoheisel.de</a>)
15 * @version $Id: StateTransitionException.java 1428 2010-11-02 15:15:10Z hoheisel $
16 */
17 public class StateTransitionException extends Exception{
18
19 /**
20 * Constructs a new <code>StateTransitionException</code> with <code>null</code> as its detail message.
21 * The cause is not initialized, and may subsequently be initialized by a
22 * call to {@link #initCause}.
23 */
24 public StateTransitionException() {
25 super();
26 }
27
28 /**
29 * Constructs a new <code>StateTransitionException</code> with the specified detail message. The
30 * cause is not initialized, and may subsequently be initialized by
31 * a call to {@link #initCause}.
32 *
33 * @param message the detail message. The detail message is saved for
34 * later retrieval by the {@link #getMessage()} method.
35 */
36 public StateTransitionException(String message) {
37 super(message);
38 }
39
40 /**
41 * Constructs a new <code>StateTransitionException</code> with the specified detail message and
42 * cause. <p>Note that the detail message associated with
43 * <code>cause</code> is <i>not</i> automatically incorporated in
44 * this exception's detail message.
45 *
46 * @param message the detail message (which is saved for later retrieval
47 * by the {@link #getMessage()} method).
48 * @param cause the cause (which is saved for later retrieval by the
49 * {@link #getCause()} method). (A <tt>null</tt> value is
50 * permitted, and indicates that the cause is nonexistent or
51 * unknown.)
52 */
53 public StateTransitionException(String message, Throwable cause) {
54 super(message, cause);
55 }
56
57 }