JS ReportErrorNumber
From MDC
(Redirected from JSErrorCallback)
[edit] Syntax
void JS_ReportErrorNumber(JSContext *cx, JSErrorCallback errorCallback, void *userRef, const uintN errorNumber, ...); void JS_ReportErrorNumberUC(JSContext *cx, JSErrorCallback errorCallback, void *userRef, const uintN errorNumber, ...); JSBool JS_ReportErrorFlagsAndNumber(JSContext *cx, uintN flags, JSErrorCallback errorCallback, void *userRef, const uintN errorNumber, ...); JSBool JS_ReportErrorFlagsAndNumberUC(JSContext *cx, uintN flags, JSErrorCallback errorCallback, void *userRef, const uintN errorNumber, ...);
| Name | Type | Description |
|---|---|---|
cx |
JSContext * |
The context in which to report the error.
Requires request. (In a |
flags |
uintN |
Error report flags. |
errorCallback |
JSErrorCallback |
|
userRef |
void * |
|
errorNumber |
const uintN |
|
... |
... |
Additional arguments for the error message. The number and types of these arguments are determined by the errorNumber. |
[edit] Description
These functions create a JSErrorReport and pass it to the specified JSErrorCallback. They are not very useful to JSAPI applications, because the JSAPI does not expose any error numbers. (???)
LXR ID Search for JS_ReportErrorNumber
LXR ID Search for JS_ReportErrorNumberUC
LXR ID Search for JS_ReportErrorFlagsAndNumber
LXR ID Search for JS_ReportErrorFlagsAndNumberUC