Fix Lua errors not inheriting RuntimeException
This commit is contained in:
parent
ad120cccba
commit
e2b8c0ed29
@ -15,11 +15,11 @@ const val LUA_ERRSYNTAX = 3
|
|||||||
const val LUA_ERRMEM = 4
|
const val LUA_ERRMEM = 4
|
||||||
const val LUA_ERRERR = 5
|
const val LUA_ERRERR = 5
|
||||||
|
|
||||||
class InvalidLuaSyntaxException(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) : Throwable(message, cause)
|
class LuaMemoryAllocException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
|
||||||
class LuaGCException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause)
|
class LuaGCException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
|
||||||
class LuaException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause)
|
class LuaException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
|
||||||
class LuaRuntimeException(message: String? = null, cause: Throwable? = null) : Throwable(message, cause)
|
class LuaRuntimeException(message: String? = null, cause: Throwable? = null) : RuntimeException(message, cause)
|
||||||
|
|
||||||
fun throwPcallError(code: Int) {
|
fun throwPcallError(code: Int) {
|
||||||
when (code) {
|
when (code) {
|
||||||
|
Loading…
Reference in New Issue
Block a user