Class SyntaxError



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

      Constructors 
      Constructor 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 Description
      int getColumnIndex​()
      column index where the error occurred (offset relative to rowIndex).
      java.lang.String getCurrentLine​()
      source code line, where the error occurred.
      java.lang.String getError​()
      the error string.
      int getLength​()
      length of the error.
      java.lang.String getMessage​()
      Gets the message.
      int getRowIndex​()
      row index where the error occurred.
      int getStartOffset​()
      offset where the error occurred.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • 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 - 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 java.lang.String getMessage​()
        Gets the message.
        Overrides:
        getMessage in class java.lang.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 java.lang.String getCurrentLine​()
        source code line, where the error occurred.
        Returns:
        the current line
      • getError

        public java.lang.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