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-vfs.git
commit 31f5fa5e8aec76761e89475858c00ab3f2922cdb Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jun 23 16:25:42 2023 -0400 [util] Throw a specialized RuntimeException instead of RuntimeException --- .../src/main/java/org/apache/commons/vfs2/util/CryptorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/CryptorFactory.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/CryptorFactory.java index 0bd34a46..0d2bd94f 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/CryptorFactory.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/CryptorFactory.java @@ -55,7 +55,7 @@ public final class CryptorFactory { instance = (Cryptor) clazz.newInstance(); return instance; } catch (final Exception ex) { - throw new RuntimeException("Unable to create Cryptor " + cryptorClass, ex); + throw new IllegalStateException("Unable to create Cryptor " + cryptorClass, ex); } } instance = new DefaultCryptor();