नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Sets the runtime of the current context to an exception state.
Syntax
STDAPI_(JsErrorCode) JsSetException(
_In_ JsValueRef exception
);
Parameters
exception
The JavaScript exception to set for the runtime of the current context.
Return Value
JsNoError if the engine was set into an exception state, a failure code otherwise.
Remarks
If the runtime of the current context is already in an exception state, this API will return JsErrorInExceptionState.
Requires an active script context.
Requirements
Header: jsrt.h