Package java.util.zip

Class 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 Details

    • ZipException

      public ZipException()
      Constructs a new ZipException instance.
    • ZipException

      public ZipException​(String detailMessage)
      Constructs a new ZipException instance with the specified message.
      Parameters:
      detailMessage - the detail message for the exception.