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-scxml.git


The following commit(s) were added to refs/heads/master by this push:
     new 20820dd  Throw a RuntimeException subclass instead of RuntimeException
20820dd is described below

commit 20820ddb92a0d3fc5be8dcbde28fdb1f39405eab
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Jul 6 15:27:09 2023 -0400

    Throw a RuntimeException subclass instead of RuntimeException
---
 .../java/org/apache/commons/scxml2/env/javascript/JSEvaluator.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/scxml2/env/javascript/JSEvaluator.java 
b/src/main/java/org/apache/commons/scxml2/env/javascript/JSEvaluator.java
index b1c6b65..1dcf478 100644
--- a/src/main/java/org/apache/commons/scxml2/env/javascript/JSEvaluator.java
+++ b/src/main/java/org/apache/commons/scxml2/env/javascript/JSEvaluator.java
@@ -18,6 +18,7 @@
 package org.apache.commons.scxml2.env.javascript;
 
 import java.io.IOException;
+import java.io.UncheckedIOException;
 import java.util.List;
 
 import javax.script.Bindings;
@@ -106,7 +107,7 @@ public class JSEvaluator extends AbstractBaseEvaluator {
                     initGlobalsScript = 
IOUtils.toString(JSEvaluator.class.getResourceAsStream("init_global.js"), 
"UTF-8");
                 }
                 catch (final IOException ioe) {
-                    throw new RuntimeException("Failed to load init_global.js 
from classpath", ioe);
+                    throw new UncheckedIOException("Failed to load 
init_global.js from classpath", ioe);
                 }
             }
         }

Reply via email to