commonMain.com.dokar.quickjs.QuickJsException.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quickjs-kt Show documentation
Show all versions of quickjs-kt Show documentation
A QuickJS binding for idiomatic Kotlin, with Async/DSL/ES Modules support.
The newest version!
package com.dokar.quickjs
/**
* It can be thrown when initializing [QuickJs] or calling its functions.
*/
class QuickJsException(
override val message: String?,
) : Exception()
@PublishedApi
internal fun qjsError(message: String): Nothing = throw QuickJsException(message)