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

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com