[scriptable, uuid(cea9ab1a-4b5d-416f-a197-9ffa7046f2ce)]
interface jsdIErrorHook : nsISupports

Constants

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


 Report is an error.
const unsigned long REPORT_ERROR = 0
 Report is only a warning.
const unsigned long REPORT_WARNING = 1
 Report represents an uncaught exception.
const unsigned long REPORT_EXCEPTION = 2
 Report is due to strict mode.
const unsigned long REPORT_STRICT = 4

Methods

 Called when the JavaScript engine encounters an error.  Return |true|
 to pass the error along, |false| to invoke the debugHook.
boolean onError(in AUTF8String message, in AUTF8String fileName, in unsigned long line, in unsigned long pos, in unsigned long flags, in unsigned long errnum, in jsdIValue exc)