Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsScriptError Class Reference

#include <xpcprivate.h>

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

List of all members.

Public Member Functions

 nsScriptError ()
virtual ~nsScriptError ()
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

Private Attributes

nsString mMessage
nsString mSourceName
PRUint32 mLineNumber
nsString mSourceLine
PRUint32 mColumnNumber
PRUint32 mFlags
nsCString mCategory

Detailed Description

Definition at line 3128 of file xpcprivate.h.


Constructor & Destructor Documentation

Definition at line 49 of file nsScriptError.cpp.

Definition at line 60 of file nsScriptError.cpp.

{}

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 
) [inherited]
AUTF8String nsIScriptError::toString ( ) [inherited]

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.

const unsigned long nsIScriptError::errorFlag = 0x0 [inherited]

pseudo-flag for default case

Definition at line 50 of file nsIScriptError.idl.

readonly attribute AString nsIScriptError::errorMessage [inherited]

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.

const unsigned long nsIScriptError::exceptionFlag = 0x2 [inherited]

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.

Definition at line 3147 of file xpcprivate.h.

Definition at line 3145 of file xpcprivate.h.

readonly attribute wstring nsIConsoleMessage::message [inherited]

Definition at line 48 of file nsIConsoleMessage.idl.

Definition at line 3146 of file xpcprivate.h.

Definition at line 3143 of file xpcprivate.h.

Definition at line 3141 of file xpcprivate.h.

Definition at line 3144 of file xpcprivate.h.

Definition at line 3142 of file xpcprivate.h.

readonly attribute AString nsIScriptError::sourceLine [inherited]

Definition at line 71 of file nsIScriptError.idl.

readonly attribute AString nsIScriptError::sourceName [inherited]

Definition at line 70 of file nsIScriptError.idl.

const unsigned long nsIScriptError::strictFlag = 0x4 [inherited]

error or warning is due to strict option

Definition at line 60 of file nsIScriptError.idl.

const unsigned long nsIScriptError::warningFlag = 0x1 [inherited]

message is warning

Definition at line 53 of file nsIScriptError.idl.


The documentation for this class was generated from the following files: