This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit c1b765ab8a175e1e70869c17cf374a4946fa48b3 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Fri Apr 25 09:09:55 2025 -0400 PasswordRequiredException now extends CompressException instead of IOException (CompressException extends IOException) --- src/changes/changes.xml | 1 + .../java/org/apache/commons/compress/PasswordRequiredException.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ddab3b63c..99d96299a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -91,6 +91,7 @@ The <action> type attribute can be add,update,fix,remove. <action type="fix" dev="ggregory" due-to="Zaki, Gary Gregory">Throw a better exception in org.apache.commons.compress.archivers.sevenz.SevenZFile.readFilesInfo(ByteBuffer, Archive).</action> <action type="fix" dev="ggregory" due-to="Gary Gregory">MemoryLimitException now extends CompressException instead of IOException (CompressException extends IOException).</action> <action type="fix" dev="ggregory" due-to="Gary Gregory">DumpArchiveException now extends ArchiveException instead of IOException (ArchiveException extends CompressException).</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">PasswordRequiredException now extends CompressException instead of IOException (CompressException extends IOException).</action> <!-- ADD --> <action type="add" dev="ggregory" due-to="Gary Gregory">Add GzipParameters.getModificationInstant().</action> <action type="add" dev="ggregory" due-to="Gary Gregory">Add GzipParameters.setModificationInstant(Instant).</action> diff --git a/src/main/java/org/apache/commons/compress/PasswordRequiredException.java b/src/main/java/org/apache/commons/compress/PasswordRequiredException.java index f4affa9d8..0187b1b7d 100644 --- a/src/main/java/org/apache/commons/compress/PasswordRequiredException.java +++ b/src/main/java/org/apache/commons/compress/PasswordRequiredException.java @@ -18,14 +18,12 @@ */ package org.apache.commons.compress; -import java.io.IOException; - /** * Exception thrown when trying to read an encrypted entry or file without configuring a password. * * @since 1.10 */ -public class PasswordRequiredException extends IOException { +public class PasswordRequiredException extends CompressException { private static final long serialVersionUID = 1391070005491684483L;