throwWithName

fun throwWithName(errorName: String, errorMessage: String)

Throw an exception to @context using the given error name and message. The created #JSCException can be retrieved with jsc_context_get_exception().

Parameters

errorName

the error name

errorMessage

an error message