Package java.util.zip
Class ZipException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.util.zip.ZipException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JarException
public class ZipException extends IOException
This runtime exception is thrown by
ZipFile and
ZipInputStream when the file or stream is not a valid zip file.- See Also:
ZipFile,ZipInputStream, Serialized Form
-
Constructor Summary
Constructors Constructor Description ZipException()Constructs a newZipExceptioninstance.ZipException(String detailMessage)Constructs a newZipExceptioninstance with the specified message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ZipException
public ZipException()Constructs a newZipExceptioninstance. -
ZipException
Constructs a newZipExceptioninstance with the specified message.- Parameters:
detailMessage- the detail message for the exception.
-