1   /**
2    * Distribution License:
3    * JSword is free software; you can redistribute it and/or modify it under
4    * the terms of the GNU Lesser General Public License, version 2.1 as published by
5    * the Free Software Foundation. This program is distributed in the hope
6    * that it will be useful, but WITHOUT ANY WARRANTY; without even the
7    * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8    * See the GNU Lesser General Public License for more details.
9    *
10   * The License is available on the internet at:
11   *       http://www.gnu.org/copyleft/lgpl.html
12   * or by writing to:
13   *      Free Software Foundation, Inc.
14   *      59 Temple Place - Suite 330
15   *      Boston, MA 02111-1307, USA
16   *
17   * Copyright: 2005
18   *     The copyright to this program is held by it's authors.
19   *
20   * ID: $Id: LucidRuntimeException.java 2090 2011-03-07 04:13:05Z dmsmith $
21   */
22  package org.crosswire.common.util;
23  
24  
25  /**
26   * EventExceptions are generally used for passing problems through the event
27   * system which does not allow checked exceptions through.
28   * 
29   * <p>
30   * So LucidRuntimeException is a LucidException in all but inheritance -
31   * LucidException inherits from Exception and so is checked, where EventEception
32   * inherits from RuntimeException and so is not checked. In general you would
33   * create a subclass of LucidException before you used it, however
34   * EventExceptions would be used directly.
35   * </p>
36   * 
37   * @see gnu.lgpl.License for license details.<br>
38   *      The copyright to this program is held by it's authors.
39   * @author Joe Walker [joe at eireneh dot com]
40   * @see LucidException
41   */
42  public class LucidRuntimeException extends RuntimeException {
43  
44      /**
45       * All LucidRuntimeException are constructed with references to resources in
46       * an i18n properties file.
47       * 
48       * @param msg
49       *            The resource id to read
50       */
51      public LucidRuntimeException(String msg) {
52          super(msg);
53      }
54  
55      /**
56       * All LucidRuntimeException are constructed with references to resources in
57       * an i18n properties file.
58       * 
59       * @param msg
60       *            The resource id to read
61       */
62      public LucidRuntimeException(String msg, Throwable cause) {
63          super(msg, cause);
64      }
65  
66      /**
67       * Serialization ID
68       */
69      private static final long serialVersionUID = 3906091143962965817L;
70  
71  }
72