error
void error(String message,
String sourceName,
int line,
int lineOffset)
Report an error.
The implementing class is free to throw an exception if
it desires.
If execution has not yet begun, the JavaScript engine is
free to find additional errors rather than terminating
the translation. It will not execute a script that had
errors, however.
- Parameters:
message
- a String describing the errorsourceName
- a String describing the JavaScript source
where the error occurred; typically a filename or URLline
- the line number associated with the errorlineOffset
- the offset into lineSource where problem was detected