This exception class is thrown when the parser encounters an error.
Note: the parser tries hard to never throw exceptions -- this error is thrown only when the API is used incorrectly and not on invalid input.