(self, token, message=None)
Initialize a parse error at the given token with an optional message.

    Args:
      token: The token where the parse error occurred.
      message: A message describing the parse error.
Initialize a parse error at the given token with an optional message.
Initialize a parse error at the given token with an optional message .
def __init__(self, token, message=None):
    """Initialize a parse error at the given token with an optional message.

    Args:
      token: The token where the parse error occurred.
      message: A message describing the parse error.
    """
    Exception.__init__(self, message)
    self.token = token
def __init__ ( self , token , message = None ) : Exception . __init__ ( self , message ) self . token = token