Package com.singularsys.jep.configurableparser.matchers

# Class GrammarException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.singularsys.jep.JepException
com.singularsys.jep.ParseException
com.singularsys.jep.configurableparser.matchers.GrammarException

All Implemented Interfaces:
  `Serializable`

public class GrammarException extends ParseException
Signals grammatical errors.

Author:
  Richard Morris
See Also:
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class com.singularsys.jep.ParseException

  `jccpe`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GrammarException(String message, int lineNumber, int columnNumber)`
  Build a GrammarException
  `GrammarException(String message, Token actual)`
  `GrammarException(String message, Token expected, Token actual)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Token`
  `getActual()`
  `Token`
  `getExpected()`

  ### Methods inherited from class com.singularsys.jep.ParseException

  `getColumnNumber, getLineNumber, getMessage, setPosition`

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### GrammarException

    public GrammarException(String message, Token expected, Token actual)

  - ### GrammarException

    public GrammarException(String message, Token actual)

  - ### GrammarException

    public GrammarException(String message, int lineNumber, int columnNumber)
    Build a GrammarException
    Parameters:
      `message` - Error message
      `lineNumber` - line number
      `columnNumber` - column number

- ## Method Details

  - ### getExpected

    public Token getExpected()

  - ### getActual

    public Token getActual()