Report an error, unless another error was already reported at same
source position.
@param key    The key for the localized error message.
@param args   Fields of the error message.
426032
public void error(String key, Object ... args) {
        error(diags.errorKey(key, args));
    }
388006
public void error(String message, Object... args) {
    error(String.format(message, args), getThrowable(args));
  }
7803
@Override
    public void fluffmsg(String key, Object... args) {
        if (showFluff()) {
            hardmsg(key, args);
        }
    }
95014
public void error(String format, Object... args) throws IOException, ServletException {
        error(String.format(format,args));
    }
796478
Option.InvalidValueException newInvalidValueException(String key, Object... args) {
        return new Option.InvalidValueException(getLog().localize(PrefixKind.JAVAC, key, args));
    }
701429
public static void printError(Object caller, String format, Object... args)
	{
		Object msg = String.format(format, args);
		
		printError(caller,msg);
	}
959072
protected JCErroneous syntaxError(String key, TokenKind arg) {
        return syntaxError(token.pos, key, arg);
    }
354648
public void note(JavaFileObject file, String key, Object ... args) {
        report(diags.note(getSource(file), null, key, args));
    }
258580
public function addMessage($key, array $args = array())
    {
        // We will only display these messages once.
        if (isset($this->keys[$key]) === false) {
            // Add it to the keys, so the CMS can display it.
            $this->keys[$key] = array('key' => $key, 'params' => $args);
            $this->messages[] = $this->getHelp($key, $args);
        }
    }
1277797
void error(int pos, String key, Object ... args) {
        log.error(DiagnosticFlag.SYNTAX, pos, key, args);
    }
89958
public void info(Enum<?> key, Object... args) {
        if (!logger.isInfoEnabled()) {
            return;
        }
        String translatedMsg = imc.getMessage(key, args);
        MessageParameterObj mpo = new MessageParameterObj(key, args);

        if (instanceofLAL) {
            ((LocationAwareLogger) logger).log(LOCALIZED, FQCN, LocationAwareLogger.INFO_INT, translatedMsg, args, null);
        } else {
            logger.info(LOCALIZED, translatedMsg, mpo);
        }
    }
1038992
public void appendArg(String key, String value) {
        if (args != null) {
            args.put(key, value);
        }
    }
1312723
public void strictWarning(DiagnosticPosition pos, String key, Object ... args) {
        writeDiagnostic(diags.warning(null, source, pos, key, args));
        nwarnings++;
    }
251445
public final void setArgument(final String key, final Object value) {

		if (key != null && value != null) {
			this.arguments.put(key, value);
		}
	}
1317387
public void error(SourcePosition pos, String key) {
        if (silent)
            return;
        messager.error(pos, key);
    }
1247139
public static void error(String format, Object... arguments) {
		error(LogFactory.indirectGet(), format, arguments);
	}
710905
public void error(Object arg0, Throwable arg1)
    {
        message(ERROR,new Object[]{arg0,arg1},new Frame(1));
    }