Print error using resource bundle look-up, MessageFormat, and add prefix
and postfix

@param key the resource key
@param args
491749
@Override
    public void errormsg(String key, Object... args) {
        if (isRunningInteractive()) {
            rawout(prefixError(messageFormat(key, args)));
        } else {
            startmsg(key, args);
        }
    }
502409
public static String getString(String key)
    {
        if (RESOURCE_BUNDLE == null)
            throw new RuntimeException("Localized messages from resource bundle '" + BUNDLE_NAME + "' not loaded during initialization of driver.");

        try
        {
            if (key == null)
                throw new IllegalArgumentException("Message key can not be null");

            String message = RESOURCE_BUNDLE.getString(key);
            if (message == null)
                message = "Missing error message for key '" + key + "'";

            return message;
        }
        catch (MissingResourceException e)
        {
            return '!' + key + '!';
        }
    }
101388
@Trivial
    public static final String getMessage(String key, Object... params) {
        return TraceNLS.getFormattedMessage(Utils.class, tc.getResourceBundleName(), key, params, key);
    }
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);
        }
    }
1211639
public static final String getMessage(String key, Object... args) {
        return NLS.getFormattedMessage(key, args, key);
    }
343409
protected final void addMessage(String msgKey, Object... args) {
    getFlash().addMessageNow(getTextInternal(msgKey, args));
  }
99414
public static String get(String key, Object... args) {
        try {
            String msg = MessageFormat.format(bundle.getString(key), args);
            if (REPLACE_LINESEP) {
                msg = msg.replace("\n", System.lineSeparator());
            }
            return msg;
        } catch (MissingResourceException e) {
            throw new InternalError("Missing message: " + key, e);
        }
    }
843437
public String _(String key, Object... args) {
//        JellyBuilder b = (JellyBuilder)getDelegate();

        ResourceBundle resourceBundle = getResourceBundle();

        // notify the listener if set
//        InternationalizedStringExpressionListener listener = (InternationalizedStringExpressionListener) Stapler.getCurrentRequest().getAttribute(LISTENER_NAME);
//        if(listener!=null)
//            listener.onUsed(this, args);

        args = Stapler.htmlSafeArguments(args);

        return resourceBundle.format(LocaleProvider.getLocale(), key, args);
    }
237068
public String format( String key, Object... params )
    {
        try
        {
            MessageFormat formatter = new MessageFormat( bundle.getString( key ) );
            return formatter.format( params );
        }
        catch (MissingResourceException ex)
        {
            return key;
        }
    }
1021042
public void error(String key, Object... params) {
        Tr.error(tc, key, params);
    }
868319
public void notifyError( URL resource, String message )
    {
        m_out.println( resource.toExternalForm() + " : " + message );
    }
351648
public static void error(TraceComponent tc, String msgKey) {
    if(isTracing()) SibTr.error(tc, msgKey);

  }
1314705
public void error(String message, Object... args) {
		if (!NONE.equals(this.logLevel)) {
			System.out.println(String.format(message, args));
		}
	}
959072
protected JCErroneous syntaxError(String key, TokenKind arg) {
        return syntaxError(token.pos, key, arg);
    }
597984
public void error(String format, Object arg) {
        formatAndLog(LOG_LEVEL_ERROR, format, arg, null);
    }
1157625
protected final void addError(String msgKey, Object... args) {
    getFlash().addErrorNow(getTextInternal(msgKey, args));
  }
290671
public void notice(String key, Object... args) {
        if (!configuration.quiet) {
            report(NOTE, resources.getText(key, args));
        }
    }