View Javadoc
1   /* ===================================================================
2    * Copyright 2002-04 SRI International.
3    * Released under the MOZILLA PUBLIC LICENSE Version 1.1
4    * which can be obtained at http://www.mozilla.org/MPL/MPL-1.1.html
5    * This software is distributed on an "AS IS"
6    * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
7    * See the License for the specific language governing rights and
8    * limitations under the License.
9    * =================================================================== */
10  package com.sri.emo.wizard;
11  
12  /***
13   * Exception for wizard-based exceptions.
14   *
15   * @author Michael Rimov
16   */
17  public class WizardException extends RuntimeException {
18      /***
19  	 * 
20  	 */
21  	private static final long serialVersionUID = 1L;
22  
23  	/***
24       * Default constructor.
25       */
26      public WizardException() {
27      }
28  
29      /***
30       * Constructs an exception with a message.
31       *
32       * @param message java.lang.String
33       */
34      public WizardException(final String message) {
35          super(message);
36      }
37  
38      /***
39       * Constructs an exception with a message and a nested exception.
40       *
41       * @param message the message
42       * @param cause   the nested exception
43       */
44      public WizardException(final String message, final Throwable cause) {
45          super(message, cause);
46      }
47  
48      /***
49       * Constructs an exception wrapping another exception.
50       *
51       * @param cause the cause Exception we're wrapping.
52       */
53      public WizardException(final Throwable cause) {
54          super(cause);
55      }
56  }