From f63b68fb2300bbe84084cc4480b4b07f2293dd47 Mon Sep 17 00:00:00 2001 From: bensku Date: Mon, 1 Jul 2024 20:13:13 +0300 Subject: [PATCH] Fix build And this is why we have CI. I had forgotten to commit one class... --- .../code4jvm/lua/stdlib/LuaException.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua4jvm/src/main/java/fi/benjami/code4jvm/lua/stdlib/LuaException.java diff --git a/lua4jvm/src/main/java/fi/benjami/code4jvm/lua/stdlib/LuaException.java b/lua4jvm/src/main/java/fi/benjami/code4jvm/lua/stdlib/LuaException.java new file mode 100644 index 0000000..0c22771 --- /dev/null +++ b/lua4jvm/src/main/java/fi/benjami/code4jvm/lua/stdlib/LuaException.java @@ -0,0 +1,22 @@ +package fi.benjami.code4jvm.lua.stdlib; + +public class LuaException extends RuntimeException { + + private static final long serialVersionUID = 1L; + + private final Object message; + + public LuaException(Object message) { + super(message.toString()); + this.message = message; + } + + public LuaException(Object message, Throwable cause) { + super(message.toString(), cause); + this.message = message; + } + + public Object getLuaMessage() { + return message; + } +}