org.matheclipse.parser.client
Class SyntaxError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.matheclipse.parser.client.math.MathException
-
- org.matheclipse.parser.client.SyntaxError
-
- All Implemented Interfaces:
- java.io.Serializable
public class SyntaxError extends MathException
Exception for a syntax error detected by the MathEclipse parser- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SyntaxError(int startOffset, int rowIndx, int columnIndx, java.lang.String currentLine, java.lang.String error, int length)SyntaxError exception
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetColumnIndex()column index where the error occurred (offset relative to rowIndex)java.lang.StringgetCurrentLine()source code line, where the error occurredjava.lang.StringgetError()the error stringintgetLength()length of the errorjava.lang.StringgetMessage()intgetRowIndex()row index where the error occurredintgetStartOffset()offset where the error occurred
-
-
-
Constructor Detail
-
SyntaxError
public SyntaxError(int startOffset, int rowIndx, int columnIndx, java.lang.String currentLine, java.lang.String error, int length)SyntaxError exception- Parameters:
startOffset-length-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getStartOffset
public int getStartOffset()
offset where the error occurred
-
getColumnIndex
public int getColumnIndex()
column index where the error occurred (offset relative to rowIndex)
-
getCurrentLine
public java.lang.String getCurrentLine()
source code line, where the error occurred
-
getError
public java.lang.String getError()
the error string
-
getLength
public int getLength()
length of the error
-
getRowIndex
public int getRowIndex()
row index where the error occurred
-
-
DMelt 3.0 © DataMelt by jWork.ORG