LucidRuntimeException.java |
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 or later 5 * as published by the Free Software Foundation. This program is distributed 6 * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even 7 * the 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 * © CrossWire Bible Society, 2005 - 2016 18 * 19 */ 20 package org.crosswire.common.util; 21 22 23 /** 24 * EventExceptions are generally used for passing problems through the event 25 * system which does not allow checked exceptions through. 26 * 27 * <p> 28 * So LucidRuntimeException is a LucidException in all but inheritance - 29 * LucidException inherits from Exception and so is checked, where EventEception 30 * inherits from RuntimeException and so is not checked. In general you would 31 * create a subclass of LucidException before you used it, however 32 * EventExceptions would be used directly. 33 * </p> 34 * 35 * @see gnu.lgpl.License The GNU Lesser General Public License for details. 36 * @author Joe Walker 37 * @see LucidException 38 */ 39 public class LucidRuntimeException extends RuntimeException { 40 41 /** 42 * All LucidRuntimeException are constructed with references to resources in 43 * an i18n properties file. 44 * 45 * @param msg 46 * The resource id to read 47 */ 48 public LucidRuntimeException(String msg) { 49 super(msg); 50 } 51 52 /** 53 * All LucidRuntimeException are constructed with references to resources in 54 * an i18n properties file. 55 * 56 * @param msg The resource id to read 57 * @param cause The cause of the exception 58 */ 59 public LucidRuntimeException(String msg, Throwable cause) { 60 super(msg, cause); 61 } 62 63 /** 64 * Serialization ID 65 */ 66 private static final long serialVersionUID = 3906091143962965817L; 67 68 } 69