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.control;
19  
20  import com.tomgibara.pronto.core.ProntoException;
21  
22  /**
23   * Instances of this class are thrown from methods to indicate that a controller
24   * has malfunctioned.
25   * 
26   * @author Tom Gibara
27   * 
28   */
29  
30  // TODO use it or lose it
31  public class ProntoControlException extends ProntoException {
32  
33      private static final long serialVersionUID = 2196093772121528768L;
34  
35      /**
36       * Constructs a new ProntoControlException.
37       */
38  
39      public ProntoControlException() {
40      }
41  
42      /**
43       * Constructs a new ProntoControlException.
44       * 
45       * @param message
46       *            the message of the exception
47       * @param cause
48       *            the throwable which caused this exception
49       */
50  
51      public ProntoControlException(final String message, final Throwable cause) {
52          super(message, cause);
53      }
54  
55      /**
56       * Constructs a new ProntoControlException.
57       * 
58       * @param message
59       *            the message of the exception
60       */
61  
62      public ProntoControlException(final String message) {
63          super(message);
64      }
65  
66      /**
67       * Constructs a new ProntoControlException.
68       * 
69       * @param cause
70       *            the throwable which caused this exception
71       */
72  
73      public ProntoControlException(final Throwable cause) {
74          super(cause);
75      }
76  
77  }