added a few methods to suppress warnings from IDE.
changed the exception name to start with Token.