WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIScriptError

IID:b0196fc7-1913-441a-882a-453c0d8b89b8
Inherits From:nsIConsoleMessage

This interface is implemented by the following components:


Constants

PRUint32 errorFlag = 0
PRUint32 warningFlag = 1
PRUint32 exceptionFlag = 2
PRUint32 strictFlag = 4

Properties

readonly char* category

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

readonly PRUint32 columnNumber

readonly AString errorMessage

The error message without any context/line number information.

readonly PRUint32 flags

readonly PRUint32 lineNumber

readonly AString sourceLine

readonly AString sourceName


Methods

void init ( PRUnichar* message , PRUnichar* sourceName , PRUnichar* sourceLine , PRUint32 lineNumber , PRUint32 columnNumber , PRUint32 flags , char* category ) AUTF8String toString ( )

void init ( PRUnichar* message , PRUnichar* sourceName , PRUnichar* sourceLine , PRUint32 lineNumber , PRUint32 columnNumber , PRUint32 flags , char* category )

Arguments:
message
sourceName
sourceLine
lineNumber
columnNumber
flags
category

AUTF8String toString ( )


References

This interface is passed as an argument to the following methods:

nsIExpatSink.ReportError

Reference documentation is generated from Mozilla's source.