public abstract class RhinoException extends RuntimeException
| Modifier and Type | Method and Description |
|---|---|
int |
columnNumber()
The column number of the location of the error, or zero if unknown.
|
String |
details() |
String |
getMessage() |
String |
getScriptStackTrace()
Get a string representing the script stack of this exception.
|
String |
getScriptStackTrace(FilenameFilter filter)
Get a string representing the script stack of this exception.
|
void |
initColumnNumber(int columnNumber)
Initialize the column number of the script statement causing the error.
|
void |
initLineNumber(int lineNumber)
Initialize the line number of the script statement causing the error.
|
void |
initLineSource(String lineSource)
Initialize the text of the source line containing the error.
|
void |
initSourceName(String sourceName)
Initialize the uri of the script source containing the error.
|
int |
lineNumber()
Returns the line number of the statement causing the error,
or zero if not available.
|
String |
lineSource()
The source text of the line causing the error, or null if unknown.
|
void |
printStackTrace(PrintStream s) |
void |
printStackTrace(PrintWriter s) |
String |
sourceName()
Get the uri of the script source containing the error, or null
if that information is not available.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringpublic final String getMessage()
getMessage in class Throwablepublic String details()
public final String sourceName()
public final void initSourceName(String sourceName)
sourceName - the uri of the script source responsible for the error.
It should not be null.IllegalStateException - if the method is called more then once.public final int lineNumber()
public final void initLineNumber(int lineNumber)
lineNumber - the line number in the script source.
It should be positive number.IllegalStateException - if the method is called more then once.public final int columnNumber()
public final void initColumnNumber(int columnNumber)
columnNumber - the column number in the script source.
It should be positive number.IllegalStateException - if the method is called more then once.public final String lineSource()
public final void initLineSource(String lineSource)
lineSource - the text of the source line responsible for the error.
It should not be null.IllegalStateException - if the method is called more then once.public String getScriptStackTrace()
public String getScriptStackTrace(FilenameFilter filter)
filter.filter - the file name filter to determine whether a file is a
script filepublic void printStackTrace(PrintWriter s)
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
printStackTrace in class ThrowableCopyright © 2015–2017 The veraPDF Consortium. All rights reserved.