Context.throwWithName

void throwWithName(string errorName, string errorMessage)

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

Parameters

errorNamethe error name
errorMessagean error message