From 32901c35ff60dc510417fdf1cab088d1ab071fae Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Sun, 5 Apr 2020 16:48:52 +0300 Subject: [PATCH] Special RuntimeException to emulate checked exceptions in SCL functions gitlab #512 Change-Id: Ifd787d23aa263fcb6ca8f59c0f957a891cdd2e15 --- .../runtime/exceptions/CheckedFunctionException.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/exceptions/CheckedFunctionException.java 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 index 000000000..2601728f2 --- /dev/null +++ b/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/exceptions/CheckedFunctionException.java @@ -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); + } + +} -- 2.47.1