-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsGetAndClearException
Limin Zhu edited this page Oct 9, 2015
·
1 revision
Returns the exception that caused the runtime of the current context to be in the exception state and resets the exception state for that runtime.
STDAPI_(JsErrorCode)
JsGetAndClearException(
_Out_ JsValueRef *exception);
- exception: The exception for the runtime of the current context.
The code JsNoError if the operation succeeded, a failure code otherwise.
If the runtime of the current context is not in an exception state, this API will return JsErrorInvalidArgument. If the runtime is disabled, this will return an exception indicating that the script was terminated, but it will not clear the exception (the exception will be cleared if the runtime is re-enabled using JsEnableRuntimeExecution). Requires an active script context.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!