[scriptable, uuid(b0196fc7-1913-441a-882a-453c0d8b89b8)]
interface nsIScriptError : nsIConsoleMessage

Constants

 pseudo-flag for default case */
const unsigned long errorFlag = 0
 message is warning */
const unsigned long warningFlag = 1
 exception was thrown for this case - exception-aware hosts can ignore */
const unsigned long exceptionFlag = 2
 error or warning is due to strict option */
const unsigned long strictFlag = 4

Attributes

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

          
readonly attribute PRUint32 columnNumber
 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

          
readonly attribute PRUint32 flags

          
readonly attribute PRUint32 lineNumber

          
readonly attribute AString sourceLine

          
readonly attribute AString sourceName

Methods


          
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()