UnexpectedTokenException
Date: 2017-02-08

com.github.zafarkhaja.semver.expr

## Class UnexpectedTokenException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.github.zafarkhaja.semver.ParseException
        - - com.github.zafarkhaja.semver.expr.UnexpectedTokenException

- All Implemented Interfaces:
    java.io.Serializable

      public class UnexpectedTokenException
      extends ParseException

  Thrown when a token of unexpected types is encountered during the parsing.
  Since:
    0.7.0
  See Also:
    Serialized Form

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `toString()` Returns the string representation of this exception containing the information about the unexpected token and, if available, about the expected types.

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

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

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

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

- - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Returns the string representation of this exception containing the information about the unexpected token and, if available, about the expected types.
      Overrides:
        `toString` in class `ParseException`
      Returns:
        the string representation of this exception