Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
jsdIErrorHook Interface Reference

import "jsdIDebuggerService.idl";

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

List of all members.

Public Member Functions

boolean onError (in string message, in string fileName, in unsigned long line, in unsigned long pos, in unsigned long flags, in unsigned long errnum, in jsdIValue exc)
 Called when the JavaScript engine encounters an error.

Public Attributes

const unsigned long REPORT_ERROR = 0x00
 REPORT_* values must be kept in sync with JSREPORT_* #defines in jsapi.h.
const unsigned long REPORT_WARNING = 0x01
 Report is only a warning.
const unsigned long REPORT_EXCEPTION = 0x02
 Report represents an uncaught exception.
const unsigned long REPORT_STRICT = 0x04
 Report is due to strict mode.

Detailed Description

Definition at line 562 of file jsdIDebuggerService.idl.


Member Function Documentation

boolean jsdIErrorHook::onError ( in string  message,
in string  fileName,
in unsigned long  line,
in unsigned long  pos,
in unsigned long  flags,
in unsigned long  errnum,
in jsdIValue  exc 
)

Called when the JavaScript engine encounters an error.

Return |true| to pass the error along, |false| to invoke the debugHook.


Member Data Documentation

REPORT_* values must be kept in sync with JSREPORT_* #defines in jsapi.h.

Report is an error.

Definition at line 572 of file jsdIDebuggerService.idl.

Report represents an uncaught exception.

Definition at line 580 of file jsdIDebuggerService.idl.

Report is due to strict mode.

Definition at line 584 of file jsdIDebuggerService.idl.

Report is only a warning.

Definition at line 576 of file jsdIDebuggerService.idl.


The documentation for this interface was generated from the following file: