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:
Serializable

public class SyntaxError
extends org.matheclipse.parser.client.math.MathException
Exception for a syntax error detected by the MathEclipse parser.
See Also:
Serialized Form
  • Constructor Details

    • SyntaxError

      public SyntaxError​(int startOffset, int rowIndx, int columnIndx, String currentLine, String error, int length)
      SyntaxError exception.
      Parameters:
      startOffset - the start offset
      rowIndx - the row indx
      columnIndx - the column indx
      currentLine - the current line
      error - the error
      length - the length
  • Method Details

    • getMessage

      public String getMessage()
      Gets the message.
      Overrides:
      getMessage in class Throwable
      Returns:
      the message
    • getStartOffset

      public int getStartOffset()
      offset where the error occurred.
      Returns:
      the start offset
    • getColumnIndex

      public int getColumnIndex()
      column index where the error occurred (offset relative to rowIndex).
      Returns:
      the column index
    • getCurrentLine

      public String getCurrentLine()
      source code line, where the error occurred.
      Returns:
      the current line
    • getError

      public String getError()
      the error string.
      Returns:
      the error
    • getLength

      public int getLength()
      length of the error.
      Returns:
      the length
    • getRowIndex

      public int getRowIndex()
      row index where the error occurred.
      Returns:
      the row index