java.util.jar
Class JarException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.util.zip.ZipException
java.util.jar.JarException
- All Implemented Interfaces:
- Serializable
public class JarException
- extends ZipException
This exception is thrown to indicate an problem with a jar file.
Note that none of the methods in the java.util.jar package actually declare
to throw this exception, most just declare that they throw an IOException
which is super class of JarException.
- Since:
- 1.2
- See Also:
- Serialized Form
Constructor Summary |
JarException()
Create a new JarException without a descriptive error message. |
JarException(String message)
Create a new JarException with a descriptive error message indicating
what went wrong. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
JarException
public JarException()
- Create a new JarException without a descriptive error message.
JarException
public JarException(String message)
- Create a new JarException with a descriptive error message indicating
what went wrong. This message can later be retrieved by calling the
getMessage()
method.
- Parameters:
message
- The descriptive error message- See Also:
Throwable.getMessage()