public final class ParserException extends RuntimeException
| Constructor and Description |
|---|
ParserException(JSErrorType errorType,
String msg,
Source source,
int line,
int column,
long token)
Constructor.
|
ParserException(String msg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Get the column for this
ParserException. |
JSErrorType |
getErrorType()
Get the
JSErrorType of this ParserException. |
String |
getFileName()
Get the source file name for this
ParserException. |
int |
getLineNumber()
Get the line number for this
ParserException. |
String |
getMessage() |
int |
getPosition()
Get token position within source where the error originated.
|
String |
getRawMessage() |
Source |
getSource()
Get the
Source of this ParserException. |
long |
getToken()
Get the token responsible for this
ParserException. |
boolean |
isIncompleteSource() |
void |
setColumnNumber(int column)
Set the column for this
ParserException. |
void |
setFileName(String fileName)
Set the source file name for this
ParserException. |
void |
setLineNumber(int line)
Set the line number for this
ParserException. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParserException(String msg)
msg - exception message for this parser error.public ParserException(JSErrorType errorType, String msg, Source source, int line, int column, long token)
errorType - error typemsg - exception messagesource - source from which this exception originatesline - line number of exceptioncolumn - column number of exceptiontoken - token from which this exception originatespublic String getFileName()
ParserException.public void setFileName(String fileName)
ParserException.fileName - the file namepublic int getLineNumber()
ParserException.public void setLineNumber(int line)
ParserException.line - the line numberpublic int getColumnNumber()
ParserException.public void setColumnNumber(int column)
ParserException.column - the column numberpublic Source getSource()
Source of this ParserException.public long getToken()
ParserException.public int getPosition()
public JSErrorType getErrorType()
JSErrorType of this ParserException.public boolean isIncompleteSource()
public String getRawMessage()
public String getMessage()
getMessage in class Throwable