Readonly
categoryReadonly
columnIf the ScriptError is a CSS parser error, this value will contain the CSS selectors of the CSS ruleset where the error occured.
Readonly
errorThe error message without any context/line number information.
nsIConsoleMessage.message will return the error formatted with file/line information.
The name of a template string associated with the error message. See js/public/friend/ErrorNumbers.msg.
Readonly
flagsReadonly
hasReadonly
innerGet the inner window id this was initialized with. Zero will be returned if init() was used instead of initWithWindowID().
Readonly
isReadonly
isReadonly
isReadonly
lineReadonly
logThe log level of this message.
Readonly
messageReadonly
microThe time (in microseconds from the Epoch) that the message instance was initialised. The timestamp is initialized as JS_now.
Readonly
notesReadonly
outerGet the window id this was initialized with. Zero will be returned if init() was used instead of initWithWindowID().
Readonly
sourceUnique identifier within the process for the script source this error is associated with, or zero.
Readonly
sourceReadonly
sourceReadonly
stackIf |stack| is an object, then stackGlobal must be a global object that's same-compartment with |stack|. This can be used to enter the correct realm when working with the stack object. We can't use the object itself because it might be a cross-compartment wrapper and CCWs are not associated with a single realm/global.
Readonly
timeThe time (in milliseconds from the Epoch) that the message instance was initialised. The timestamp is initialized as JS_now/1000 so that it can be compared to Date.now in Javascript.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
This is the same function as initWithWindowID, but it expects an already sanitized sourceName. Please use it only if sourceName string is already sanitized.
This is the same function as initWithWindowID with an uri as a source parameter.
This should be called instead of nsIScriptError.init to initialize with a window id. The window id should be for the inner window associated with this error.
This function will check whether sourceName is a uri and sanitize it if needed. If you know the source name is sanitized already, use initWithSanitizedSource. A "sanitized" source name means that passwords are not shown. It will use the sensitiveInfoHiddenSpec function of nsIURI interface, that is replacing paswords with *** (e.g. https://USERNAME:****@example.com/some/path).
Generated using TypeDoc
Categories I know about - XUL javascript content javascript (both of these from nsDocShell, currently) system javascript (errors in JS components and other system JS)