|
|||||||||
| Home >> All >> netscape >> [ jsdebug overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
netscape.jsdebug
Interface JSErrorReporter

- public interface JSErrorReporter
This is a special kind of hook to respond to JavaScript errors
- Since:
- 1.0
- Version:
- 1.0
| Field Summary | |
static int |
DEBUG
returned by reportError() to indicate that the
'debug break' hook should be called to allow the debugger to
investigate the state of the process when the error occured |
static int |
PASS_ALONG
returned by reportError() to indicate that the error
should be passed along to the error reporter that would have been
called had the debugger not been running |
static int |
RETURN
returned by reportError() to indicate that the
normal error reporter should not be called and that the JavaScript
engine should do whatever it would normally do after calling the
error reporter. |
| Method Summary | |
int |
reportError(java.lang.String msg,
java.lang.String filename,
int lineno,
java.lang.String linebuf,
int tokenOffset)
This hook is called when a JavaScript error (compile or runtime) occurs |
| Field Detail |
PASS_ALONG
public static final int PASS_ALONG
- returned by
reportError()to indicate that the error should be passed along to the error reporter that would have been called had the debugger not been running- See Also:
- Constant Field Values
RETURN
public static final int RETURN
- returned by
reportError()to indicate that the normal error reporter should not be called and that the JavaScript engine should do whatever it would normally do after calling the error reporter.- See Also:
- Constant Field Values
DEBUG
public static final int DEBUG
- returned by
reportError()to indicate that the 'debug break' hook should be called to allow the debugger to investigate the state of the process when the error occured- See Also:
- Constant Field Values
| Method Detail |
reportError
public int reportError(java.lang.String msg, java.lang.String filename, int lineno, java.lang.String linebuf, int tokenOffset)
- This hook is called when a JavaScript error (compile or runtime) occurs
One of the codes above should be returned to tell the engine how to proceed.
|
|||||||||
| Home >> All >> netscape >> [ jsdebug overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC