WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

jsdIErrorHook

IID:b7dd3c1c-1dd1-11b2-83eb-8a857d199e0f
Inherits From:nsISupports

Constants

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

Methods

PRBool onError ( char* message , char* fileName , PRUint32 line , PRUint32 pos , PRUint32 flags , PRUint32 errnum , jsdIValue exc )

PRBool onError ( char* message , char* fileName , PRUint32 line , PRUint32 pos , PRUint32 flags , PRUint32 errnum , jsdIValue exc )

Called when the JavaScript engine encounters an error. Return true to pass the error along, false to invoke the debugHook.

Arguments:
message
fileName
line
pos
flags
errnum
exc

References

This interface is the type of the following properties:

jsdIDebuggerService.errorHook

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com