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:04:11 UTC

[commons-rdf] 01/02: [main] 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-rdf.git

commit cda374487c1d65b9917e8be563f5ab448debcfac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jun 23 15:48:15 2023 -0400

    [main] Throw a specialized RuntimeException instead of
    RuntimeException
---
 .../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
index a066330d..40cbcb25 100644
--- a/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
+++ b/commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java
@@ -223,7 +223,7 @@ public abstract class AbstractRDFParser<T extends AbstractRDFParser<T>> implemen
         try {
             return (T) super.clone();
         } catch (final CloneNotSupportedException e) {
-            throw new RuntimeException(e);
+            throw new IllegalStateException(e);
         }
     }