Make List type safe. Remove/suppress all warnings.
[marc4j.git] / src / org / marc4j / MarcException.java
1 // $Id: MarcException.java,v 1.1 2005/05/04 10:06:46 bpeters Exp $\r
2 /**\r
3  * Copyright (C) 2004 Bas Peters\r
4  *\r
5  * This file is part of MARC4J\r
6  *\r
7  * MARC4J is free software; you can redistribute it and/or\r
8  * modify it under the terms of the GNU Lesser General Public \r
9  * License as published by the Free Software Foundation; either \r
10  * version 2.1 of the License, or (at your option) any later version.\r
11  *\r
12  * MARC4J is distributed in the hope that it will be useful,\r
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
15  * Lesser General Public License for more details.\r
16  *\r
17  * You should have received a copy of the GNU Lesser General Public \r
18  * License along with MARC4J; if not, write to the Free Software\r
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
20  */\r
21 package org.marc4j;\r
22 \r
23 /**\r
24  * Thrown in various situations by MARC4J; may contain a nested exception.\r
25  * \r
26  * @author Bas Peters\r
27  * @version $Revision: 1.1 $\r
28  *  \r
29  */\r
30 public class MarcException extends RuntimeException {\r
31 \r
32   /**\r
33    * \r
34    */\r
35   private static final long serialVersionUID = -7600942667740838717L;\r
36 \r
37   /**\r
38    * Create a new <code>MarcException</code> with no detail mesage.\r
39    */\r
40   public MarcException() {\r
41     super();\r
42   }\r
43 \r
44   /**\r
45    * Create a new <code>MarcException</code> with the <code>String</code>\r
46    * specified as an error message.\r
47    * \r
48    * @param message\r
49    *          information about the cause of the exception\r
50    */\r
51   public MarcException(String message) {\r
52     super(message);\r
53   }\r
54 \r
55   /**\r
56    * Create a new <code>MarcException</code> with the given\r
57    * <code>Exception</code> base cause and detail message.\r
58    * \r
59    * @param message\r
60    *          information about the cause of the exception\r
61    * @param ex\r
62    *          the nested exception that caused this exception\r
63    */\r
64   public MarcException(String message, Throwable ex) {\r
65     super(message, ex);\r
66   }\r
67 \r
68 }