Raise an exception with the current parser state information and error message.

def raise_error(
            self,
            exception_type,  # type: Type[Exception]
            message  # type: Text
    ):
        # type: (...) -> NoReturn
        """Raise an exception with the current parser state information and error message."""
        error_message = '{} at {}'.format(message, repr(self))
        raise exception_type(error_message)