parameters: (self, e, tokenNames)
return_statement: return BaseRecognizer.getErrorMessage(self, e, tokenNames)
docstring: Tree parsers parse nodes they usually have a token object as
          payload. Set the exception token and do the default behavior.
docstring_summary: Tree parsers parse nodes they usually have a token object as
          payload. Set the exception token and do the default behavior.
docstring_tokens: Tree parsers parse nodes they usually have a token object as payload . Set the exception token and do the default behavior .
function: def getErrorMessage(self, e, tokenNames):
          """
          Tree parsers parse nodes they usually have a token object as
          payload. Set the exception token and do the default behavior.
          """
  
          if isinstance(self, TreeParser):
              adaptor = e.input.getTreeAdaptor()
              e.token = adaptor.getToken(e.node)
              if e.token is not None: # could be an UP/DOWN node
                  e.token = CommonToken(
                      type=adaptor.getType(e.node),
                      text=adaptor.getText(e.node)
                      )
  
          return BaseRecognizer.getErrorMessage(self, e, tokenNames)
function_tokens: def getErrorMessage ( self , e , tokenNames ) : if isinstance ( self , TreeParser ) : adaptor = e . input . getTreeAdaptor ( ) e . token = adaptor . getToken ( e . node ) if e . token is not None : # could be an UP/DOWN node e . token = CommonToken ( type = adaptor . getType ( e . node ) , text = adaptor . getText ( e . node ) ) return BaseRecognizer . getErrorMessage ( self , e , tokenNames )