Public Types | Public Member Functions | Public Attributes

jsdIErrorHook Interface Reference

import "jsdIDebuggerService.idl";

List of all members.

Public Types

enum  { REPORT_ERROR = 0U }
 

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

More...
enum  { REPORT_WARNING = 1U }
 

Report is only a warning.

More...
enum  { REPORT_EXCEPTION = 2U }
 

Report represents an uncaught exception.

More...
enum  { REPORT_STRICT = 4U }
 

Report is due to strict mode.

More...

Public Member Functions

virtual nsresult OnError (const nsACString &message, const nsACString &fileName, PRUint32 line, PRUint32 pos, PRUint32 flags, PRUint32 errnum, jsdIValue *exc, PRBool *_retval)=0
 Called when the JavaScript engine encounters an error.
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)
 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.

Member Enumeration Documentation

anonymous enum

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

Report is an error.

Enumerator:
REPORT_ERROR 
anonymous enum

Report is only a warning.

Enumerator:
REPORT_WARNING 
anonymous enum

Report represents an uncaught exception.

Enumerator:
REPORT_EXCEPTION 
anonymous enum

Report is due to strict mode.

Enumerator:
REPORT_STRICT 

Member Function Documentation

virtual nsresult jsdIErrorHook::OnError ( const nsACString message,
const nsACString fileName,
PRUint32  line,
PRUint32  pos,
PRUint32  flags,
PRUint32  errnum,
jsdIValue exc,
PRBool _retval 
) [pure virtual]

Called when the JavaScript engine encounters an error.

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

boolean jsdIErrorHook::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 
)

Called when the JavaScript engine encounters an error.

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


Member Data Documentation

const unsigned long jsdIErrorHook::REPORT_ERROR = 0x00

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

Report is an error.

const unsigned long jsdIErrorHook::REPORT_EXCEPTION = 0x02

Report represents an uncaught exception.

const unsigned long jsdIErrorHook::REPORT_STRICT = 0x04

Report is due to strict mode.

const unsigned long jsdIErrorHook::REPORT_WARNING = 0x01

Report is only a warning.


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