View Javadoc

1   /*
2    * Copyright (C) 2006  Tom Gibara
3    *
4    * This library is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Lesser General Public
6    * License as published by the Free Software Foundation; either
7    * version 2.1 of the License, or (at your option) any later version.
8    *
9    * This library is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   * Lesser General Public License for more details.
13   *
14   * You should have received a copy of the GNU Lesser General Public
15   * License along with this library; if not, write to the Free Software
16   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
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  }