[scriptable, uuid(b7dd3c1c-1dd1-11b2-83eb-8a857d199e0f)]
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 string message, in string fileName, in unsigned long line, in unsigned long pos, in unsigned long flags, in unsigned long errnum, in jsdIValue exc)
Compare to: