parameters: (message, filename, line=None, src='', traceback=None, prefix='ERROR')
return_statement: return '\n{}\n{}{}{}\n'.format(title, filename, src, trace)
docstring: Helper for reporting error to logging module.
  
      Inputs:
          message[str]: The message to report, ERROR is automatically appended
          page[pages.Page]: The page that created the error
          info[Information]: The lexer information object
          traceback: The traceback (should be a string from traceback.format_exc())
docstring_summary: Helper for reporting error to logging module.
docstring_tokens: Helper for reporting error to logging module .
function: def report_error(message, filename, line=None, src='', traceback=None, prefix='ERROR'):
      """
      Helper for reporting error to logging module.
  
      Inputs:
          message[str]: The message to report, ERROR is automatically appended
          page[pages.Page]: The page that created the error
          info[Information]: The lexer information object
          traceback: The traceback (should be a string from traceback.format_exc())
      """
      title = '{}: {}'.format(prefix, message)
      if src:
          src = mooseutils.colorText(box(src, line=line, width=100), 'LIGHT_CYAN')
  
      if line is not None:
          filename = mooseutils.colorText('{}:{}\n'.format(filename, line), 'RESET')
      else:
          filename = mooseutils.colorText('{}\n'.format(filename), 'RESET')
  
      trace = '\n' + mooseutils.colorText(traceback, 'GREY') if traceback else ''
      return '\n{}\n{}{}{}\n'.format(title, filename, src, trace)
function_tokens: def report_error ( message , filename , line = None , src = '' , traceback = None , prefix = 'ERROR' ) : title = '{}: {}' . format ( prefix , message ) if src : src = mooseutils . colorText ( box ( src , line = line , width = 100 ) , 'LIGHT_CYAN' ) if line is not None : filename = mooseutils . colorText ( '{}:{}\n' . format ( filename , line ) , 'RESET' ) else : filename = mooseutils . colorText ( '{}\n' . format ( filename ) , 'RESET' ) trace = '\n' + mooseutils . colorText ( traceback , 'GREY' ) if traceback else '' return '\n{}\n{}{}{}\n' . format ( title , filename , src , trace )