
net.java.truevfs.comp.zip.ZipCryptoException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truevfs-comp-zip Show documentation
Show all versions of truevfs-comp-zip Show documentation
Provides basic functionality for reading and writing ZIP files.
/*
* Copyright (C) 2005-2015 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truevfs.comp.zip;
import javax.annotation.CheckForNull;
import java.util.zip.ZipException;
import javax.annotation.concurrent.ThreadSafe;
/**
* Thrown if there is an issue when reading or writing an encrypted ZIP file
* or entry.
*
* @author Christian Schlichtherle
*/
@ThreadSafe
public class ZipCryptoException extends ZipException {
private static final long serialVersionUID = 2783693745683625471L;
/**
* Constructs a ZIP crypto exception with
* no detail message.
*/
public ZipCryptoException() {
}
/**
* Constructs a ZIP crypto exception with
* the given detail message.
*
* @param msg the detail message.
*/
public ZipCryptoException(@CheckForNull String msg) {
super(msg);
}
/**
* Constructs a ZIP crypto exception with
* the given detail message and cause.
*
* @param msg the detail message.
* @param cause the cause for this exception to be thrown.
*/
public ZipCryptoException(@CheckForNull String msg, @CheckForNull Throwable cause) {
super(msg);
super.initCause(cause);
}
/**
* Constructs a ZIP crypto exception with
* the given cause.
*
* @param cause the cause for this exception to get thrown.
*/
public ZipCryptoException(@CheckForNull Throwable cause) {
super(null != cause ? cause.toString() : null);
super.initCause(cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy