* @return the line number or -1 if the exception was not thrown due to the
* execution of a script.
*/
public int getFailingLineNumber() {
if (getCause() instanceof RhinoException) {
final RhinoException cause = (RhinoException) getCause();
return cause.lineNumber();
}
return -1;
}