Special RuntimeException to emulate checked exceptions in SCL functions 95/4095/1
authorAntti Villberg <antti.villberg@semantum.fi>
Sun, 5 Apr 2020 13:48:52 +0000 (16:48 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Sun, 5 Apr 2020 13:48:52 +0000 (16:48 +0300)
gitlab #512

Change-Id: Ifd787d23aa263fcb6ca8f59c0f957a891cdd2e15

bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/exceptions/CheckedFunctionException.java [new file with mode: 0644]

diff --git a/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/exceptions/CheckedFunctionException.java b/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/exceptions/CheckedFunctionException.java
new file mode 100644 (file)
index 0000000..2601728
--- /dev/null
@@ -0,0 +1,11 @@
+package org.simantics.scl.runtime.exceptions;
+
+public class CheckedFunctionException extends RuntimeException {
+
+    private static final long serialVersionUID = 6314226787099140449L;
+
+    public CheckedFunctionException(Exception cause) {
+        super(cause);
+    }
+    
+}