public class SyntaxError extends MathException
Constructor and Description |
---|
SyntaxError(int startOffset,
int rowIndx,
int columnIndx,
String currentLine,
String error,
int length)
SyntaxError exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnIndex()
column index where the error occurred (offset relative to rowIndex).
|
String |
getCurrentLine()
source code line, where the error occurred.
|
String |
getError()
the error string.
|
int |
getLength()
length of the error.
|
String |
getMessage()
Gets the message.
|
int |
getRowIndex()
row index where the error occurred.
|
int |
getStartOffset()
offset where the error occurred.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SyntaxError(int startOffset, int rowIndx, int columnIndx, String currentLine, String error, int length)
startOffset
- the start offsetrowIndx
- the row indxcolumnIndx
- the column indxcurrentLine
- the current lineerror
- the errorlength
- the lengthpublic String getMessage()
getMessage
in class Throwable
public int getStartOffset()
public int getColumnIndex()
public String getCurrentLine()
public String getError()
public int getLength()
public int getRowIndex()
Copyright © 2018. All rights reserved.