Struct xpcom::interfaces::nsIScriptError [] [src]

#[repr(C)]
pub struct nsIScriptError { /* fields omitted */ }

interface nsIScriptError : nsIConsoleMessage

Methods

impl nsIScriptError
[src]

[src]

Cast this nsIScriptError to one of its base interfaces.

impl nsIScriptError
[src]

errorFlag: i64 = 0
/** pseudo-flag for default case */

warningFlag: i64 = 1
/** message is warning */

exceptionFlag: i64 = 2
/** exception was thrown for this case - exception-aware hosts can ignore */

strictFlag: i64 = 4
/** error or warning is due to strict option */

infoFlag: i64 = 8
/** just a log message */

[src]

/**
     * The error message without any context/line number information.
     *
     * @note nsIConsoleMessage.message will return the error formatted
     *       with file/line information.
     */

readonly attribute AString errorMessage;

[src]

readonly attribute AString sourceName;

[src]

readonly attribute AString sourceLine;

[src]

readonly attribute uint32_t lineNumber;

[src]

readonly attribute uint32_t columnNumber;

[src]

readonly attribute uint32_t flags;

[src]

/**
     * Categories I know about -
     * XUL javascript
     * content javascript (both of these from nsDocShell, currently)
     * system javascript (errors in JS components and other system JS)
     */

readonly attribute string category;

[src]

readonly attribute unsigned long long outerWindowID;

[src]

readonly attribute unsigned long long innerWindowID;

[src]

readonly attribute boolean isFromPrivateWindow;

[src]

/**
     * The name of a template string, as found in js.msg, associated with the
     * error message.
     */

attribute AString errorMessageName;

[src]

/**
     * The name of a template string, as found in js.msg, associated with the
     * error message.
     */

attribute AString errorMessageName;

[src]

readonly attribute nsIArray notes;

[src]

void init (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in string category);

[src]

void initWithWindowID (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID);

[src]

void initWithSanitizedSource (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID);

[src]

void initWithSourceURI (in AString message, in nsIURI sourceURI, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID);

Methods from Deref<Target = nsIConsoleMessage>

[src]

Cast this nsIConsoleMessage to one of its base interfaces.

[src]

/**
     * The log level of this message.
     */

readonly attribute uint32_t logLevel;

[src]

/**
     * The 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.
     */

readonly attribute long long timeStamp;

[src]

[binaryname(MessageMoz)] readonly attribute wstring message;

[src]

AUTF8String toString ();

Trait Implementations

impl XpCom for nsIScriptError
[src]

IID: nsIID = nsID(1676365118, 32153, 16720, [180, 243, 17, 49, 79, 157, 130, 169])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIScriptError
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIScriptError
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.