public class ScriptException extends RuntimeException
| Constructor and Description |
|---|
ScriptException(HtmlPage page,
Throwable throwable)
Creates an instance.
|
ScriptException(HtmlPage page,
Throwable throwable,
String scriptSourceCode)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFailingColumnNumber()
Returns the column number of the source that was executing at the time of the exception.
|
String |
getFailingLine()
Returns the line of source that was being executed when this exception was
thrown.
|
int |
getFailingLineNumber()
Returns the line number of the source that was executing at the time of the exception.
|
HtmlPage |
getPage()
Gets the HTML page in which the script error occurred.
|
String |
getScriptSourceCode()
Returns the source code line that failed.
|
void |
printScriptStackTrace(PrintWriter writer)
Prints the script stack trace.
|
void |
printStackTrace()
Prints the stack trace to System.out.
|
void |
printStackTrace(PrintStream stream)
|