OSDN Git Service

2b73c0546284746c0c18dd571472fbb5efd26c3a
[pf3gnuchains/gcc-fork.git] / libjava / java / util / jar / JarException.java
1 /* Attributes.java -- exception thrown to indicate an problem with a jar file
2    Copyright (C) 2000 Free Software Foundation, Inc.
3
4 This file is part of GNU Classpath.
5
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING.  If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
20
21 As a special exception, if you link this library with other files to
22 produce an executable, this library does not by itself cause the
23 resulting executable to be covered by the GNU General Public License.
24 This exception does not however invalidate any other reasons why the
25 executable file might be covered by the GNU General Public License. */
26
27 package java.util.jar;
28
29 import java.util.zip.ZipException;
30
31 /**
32  * This exception is thrown to indicate an problem with a jar file.
33  * It can be constructed with or without a descriptive message of the problem.
34  * <p>
35  * Note that none of the methods in the java.util.jar package actually declare
36  * to throw this exception, most just declare that they throw an IOException
37  * which is super class of JarException.
38  * 
39  * @since 1.2
40  * @author Mark Wielaard (mark@klomp.org)
41  */
42
43 public class JarException extends ZipException
44 {
45   // Constructors
46
47   /**
48    * Create a new JarException without a descriptive error message.
49    */
50   public JarException()
51   {
52     super();
53   }
54
55   /**
56    * Create a new JarException with a descriptive error message indicating
57    * what went wrong. This message can later be retrieved by calling the
58    * <code>getMessage()</code> method.
59    * @see java.lang.Throwable@getMessage()
60    *
61    * @param message The descriptive error message
62    */
63   public JarException(String message)
64   {
65     super(message);
66   }
67 }