Context.throw_

void throw_(string errorMessage)

Throw an exception to context using the given error message. The created #JSCException can be retrieved with [javascriptcore.context.Context.getException].

Parameters

errorMessagean error message