1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package com.tomgibara.pronto.state;
19
20 import com.tomgibara.pronto.core.ProntoException;
21
22 /**
23 *
24 * Instances of this class are typically thrown when an invalid request is made
25 * of a state graph or a state graph editor, or when an state engine transition
26 * fails.
27 *
28 * @author Tom Gibara
29 *
30 */
31
32 public class ProntoStateException extends ProntoException {
33
34 private static final long serialVersionUID = -4578645087639319839L;
35
36 /**
37 * Constructs a new ProntoStateException.
38 */
39
40 public ProntoStateException() {
41 }
42
43 /**
44 * Constructs a new ProntoStateException.
45 *
46 * @param message
47 * the message of the exception
48 * @param cause
49 * the throwable which caused this exception
50 */
51
52 public ProntoStateException(final String message, final Throwable cause) {
53 super(message, cause);
54 }
55
56 /**
57 * Constructs a new ProntoStateException.
58 *
59 * @param message
60 * the message of the exception
61 */
62
63 public ProntoStateException(final String message) {
64 super(message);
65 }
66
67 /**
68 * Constructs a new ProntoStateException.
69 *
70 * @param cause
71 * the throwable which caused this exception
72 */
73
74 public ProntoStateException(final Throwable cause) {
75 super(cause);
76 }
77
78 }