-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsErrorCode
Limin Zhu edited this page Oct 9, 2015
·
3 revisions
An error code returned from a Chakra hosting API.
enum JsErrorCode : unsigned int
- JsNoError: Success error code.
- JsErrorCategoryUsage: Category of errors that relates to incorrect usage of the API itself.
- JsErrorInvalidArgument: An argument to a hosting API was invalid.
- JsErrorNullArgument: An argument to a hosting API was null in a context where null is not allowed.
- JsErrorNoCurrentContext: The hosting API requires that a context be current, but there is no current context.
- JsErrorInExceptionState: The engine is in an exception state and no APIs can be called until the exception is
- JsErrorNotImplemented: A hosting API is not yet implemented.
- JsErrorWrongThread: A hosting API was called on the wrong thread.
- JsErrorRuntimeInUse: A runtime that is still in use cannot be disposed.
- JsErrorBadSerializedScript: A bad serialized script was used, or the serialized script was serialized by a different version of the Chakra engine.
- JsErrorInDisabledState: The runtime is in a disabled state.
- JsErrorCannotDisableExecution: Runtime does not support reliable script interruption.
- JsErrorHeapEnumInProgress: A heap enumeration is currently underway in the script context.
- JsErrorArgumentNotObject: A hosting API that operates on object values was called with a non-object value.
- JsErrorInProfileCallback: A script context is in the middle of a profile callback.
- JsErrorInThreadServiceCallback: A thread service callback is currently underway.
- JsErrorCannotSerializeDebugScript: Scripts cannot be serialized in debug contexts.
- JsErrorAlreadyDebuggingContext: The context cannot be put into a debug state because it is already in a debug state.
- JsErrorAlreadyProfilingContext: The context cannot start profiling because it is already profiling.
- JsErrorIdleNotEnabled: Idle notification given when the host did not enable idle processing.
- JsCannotSetProjectionEnqueueCallback: The context did not accept the enqueue callback.
- JsErrorCannotStartProjection: Failed to start projection.
- JsErrorInObjectBeforeCollectCallback: The operation is not supported in an object before collect callback.
- JsErrorObjectNotInspectable: Object cannot be unwrapped to IInspectable pointer.
- JsErrorPropertyNotSymbol: A hosting API that operates on symbol property ids but was called with a non-symbol property id. The error code is returned by JsGetSymbolFromPropertyId if the function is called with non-symbol property id.
- JsErrorPropertyNotString: A hosting API that operates on string property ids but was called with a non-string property id. The error code is returned by existing JsGetPropertyNamefromId if the function is called with non-string property id.
- JsErrorCategoryEngine: Category of errors that relates to errors occurring within the engine itself.
- JsErrorOutOfMemory: The Chakra engine has run out of memory.
- JsErrorCategoryScript: Category of errors that relates to errors in a script.
- JsErrorScriptException: A JavaScript exception occurred while running a script.
- JsErrorScriptCompile: JavaScript failed to compile.
- JsErrorScriptTerminated: A script was terminated due to a request to suspend a runtime.
- JsErrorScriptEvalDisabled: A script was terminated because it tried to use eval or function and eval was disabled.
- JsErrorCategoryFatal: Category of errors that are fatal and signify failure of the engine.
- JsErrorFatal: A fatal error in the engine has occurred.
- JsErrorWrongRuntime: A hosting API was called with object created on different javascript runtime.
- 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!