code: def get_error(self):
          
          col_offset = -1
          if self.node is not None:
              try:
                  col_offset = self.node.col_offset
              except AttributeError:
                  pass
          try:
              exc_name = self.exc.__name__
          except AttributeError:
              exc_name = str(self.exc)
          if exc_name in (None, 'None'):
              exc_name = 'UnknownError'
  
          out = ["   %s" % self.expr]
          if col_offset > 0:
              out.append("    %s^^^" % ((col_offset)*' '))
          out.append(str(self.msg))
          return (exc_name, '\n'.join(out))
docs: Retrieve error data.