Function chakracore_sys::JsSetException [] [src]

pub unsafe extern "system" fn JsSetException(
    exception: JsValueRef
) -> JsErrorCode

Sets the runtime of the current context to an exception state. If the runtime of the current context is already in an exception state, this API will return JsErrorInExceptionState. Requires an active script context. The JavaScript exception to set for the runtime of the current context. JsNoError if the engine was set into an exception state, a failure code otherwise.