You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/23 20:27:17 UTC
[commons-vfs] 10/15: [util] Throw a specialized RuntimeException instead of RuntimeException
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 <ga...@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();