Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIScriptError Interface Reference

import "nsIScriptError.idl";

Inheritance diagram for nsIScriptError:
Inheritance graph
[legend]
Collaboration diagram for nsIScriptError:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void init (in wstring message, in wstring sourceName, in wstring sourceLine, in PRUint32 lineNumber, in PRUint32 columnNumber, in PRUint32 flags, in string category)
AUTF8String toString ()

Public Attributes

const unsigned long errorFlag = 0x0
 pseudo-flag for default case
const unsigned long warningFlag = 0x1
 message is warning
const unsigned long exceptionFlag = 0x2
 exception was thrown for this case - exception-aware hosts can ignore
const unsigned long strictFlag = 0x4
 error or warning is due to strict option
readonly attribute AString errorMessage
 The error message without any context/line number information.
readonly attribute AString sourceName
readonly attribute AString sourceLine
readonly attribute PRUint32 lineNumber
readonly attribute PRUint32 columnNumber
readonly attribute PRUint32 flags
readonly attribute string category
 Categories I know about - XUL javascript content javascript (both of these from nsDocShell, currently) component javascript (errors in JS components)
readonly attribute wstring message

Detailed Description

Definition at line 47 of file nsIScriptError.idl.


Member Function Documentation

void nsIScriptError::init ( in wstring  message,
in wstring  sourceName,
in wstring  sourceLine,
in PRUint32  lineNumber,
in PRUint32  columnNumber,
in PRUint32  flags,
in string  category 
)
AUTF8String nsIScriptError::toString ( )

Member Data Documentation

Categories I know about - XUL javascript content javascript (both of these from nsDocShell, currently) component javascript (errors in JS components)

Definition at line 82 of file nsIScriptError.idl.

Definition at line 73 of file nsIScriptError.idl.

pseudo-flag for default case

Definition at line 50 of file nsIScriptError.idl.

The error message without any context/line number information.

Note:
nsIConsoleMessage.message will return the error formatted with file/line information.

Definition at line 68 of file nsIScriptError.idl.

exception was thrown for this case - exception-aware hosts can ignore

Definition at line 56 of file nsIScriptError.idl.

Definition at line 74 of file nsIScriptError.idl.

Definition at line 72 of file nsIScriptError.idl.

readonly attribute wstring nsIConsoleMessage::message [inherited]

Definition at line 48 of file nsIConsoleMessage.idl.

Definition at line 71 of file nsIScriptError.idl.

Definition at line 70 of file nsIScriptError.idl.

error or warning is due to strict option

Definition at line 60 of file nsIScriptError.idl.

message is warning

Definition at line 53 of file nsIScriptError.idl.


The documentation for this interface was generated from the following file: