code: def get_err_msg(self):
          
          ret_str = 'Syntax error:'
          disp_file = 'NoFile' if self.file is None else self.file
          if self.lineno is not None:
              ret_str += _format("{0}:{1}:{2}",
                                 disp_file, self.lineno, self.column)
          if self.msg:
              ret_str += _format(" {0}", self.msg)
          if self.context is not None:
              ret_str += '\n'
              ret_str += '\n'.join(self.context)
          return ret_str
docs: Return a multi-line error message for being printed, in the following
          format. The text in angle brackets refers to the same-named properties
          of the exception instance:
  
          ::
  
              Syntax error:<file>:<lineno>: <msg>
              <context - MOF line>
              <context - position indicator line>
  
          Returns:
  
            :term:`string`: Multi-line error message.