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.
@mozilla.org/scripterror;1
This component implements the following interfaces:
Constants
| PRUint32 | nsIScriptError.errorFlag | = 0 |
| PRUint32 | nsIScriptError.warningFlag | = 1 |
| PRUint32 | nsIScriptError.exceptionFlag | = 2 |
| PRUint32 | nsIScriptError.strictFlag | = 4 |
Properties
readonly char* nsIScriptError.category
Categories I know about - XUL javascript content javascript (both of these from nsDocShell, currently) component javascript (errors in JS components)
readonly PRUint32 nsIScriptError.columnNumber
readonly AString nsIScriptError.errorMessage
The error message without any context/line number information.
readonly PRUint32 nsIScriptError.flags
readonly PRUint32 nsIScriptError.lineNumber
readonly PRUnichar* nsIConsoleMessage.message
readonly AString nsIScriptError.sourceLine
readonly AString nsIScriptError.sourceName
Methods
| Interface | Method |
|---|---|
| nsIScriptError |
void init ( PRUnichar* message , PRUnichar* sourceName , PRUnichar* sourceLine , PRUint32 lineNumber , PRUint32 columnNumber , PRUint32 flags , char* category )
|
| nsIScriptError |
AUTF8String toString ( )
|
Reference documentation is generated from Mozilla's source.
