diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/lua/Errors.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/lua/Errors.kt index ca5638b9..32dc749f 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/lua/Errors.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/lua/Errors.kt @@ -15,11 +15,11 @@ const val LUA_ERRSYNTAX = 3 const val LUA_ERRMEM = 4 const val LUA_ERRERR = 5 -class InvalidLuaSyntaxException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause) -class LuaMemoryAllocException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause) -class LuaGCException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause) -class LuaException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause) -class LuaRuntimeException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause) +class InvalidLuaSyntaxException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause) +class LuaMemoryAllocException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause) +class LuaGCException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause) +class LuaException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause) +class LuaRuntimeException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause) fun throwPcallError(code: Int) { when (code) {