Class ZipException in Java

Class ZipException in Java

ZipException Signals that an error has occurred in reading or writing a ZIP file.

A ZipException is thrown when an error occurs when reading or writing a ZIP file. Normally this occurs when data is read that is not in the correct format.

public class java.util.zip.ZipException extends java.io.IOException{
// Public Constructors
public ZipException();//This constructor creates a ZipException with no associated detail message.
public ZipException(String s);//This constructor creates a ZipException with the given detail message.
}

The class ZipException also inherits methods from class Object and Throwable.

From Object classFrom Throwable class
clone()fillInStackTrace()
getClass()getMessage()
notify()printStackTrace()
wait()printStackTrace(PrintWriter)
wait(long, int)getLocalizedMessage()
wait(long)printStackTrace(PrintStream)
equals(Object)
toString()
finalize()
hashCode()
notifyAll()

Share and Enjoy !

See also  ArithmeticException in Java

Leave a Reply

Your email address will not be published. Required fields are marked *