Class 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 Detail

      • 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 Detail

      • 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