Returns the formatted message after looking up the format in the resource bundle.

@return The formatted message String.
344961
@Override
    public String getFormattedMessage() {
        if (formattedMessage != null) {
            return formattedMessage;
        }
        ResourceBundle bundle = this.resourceBundle;
        if (bundle == null) {
            if (baseName != null) {
                bundle = getResourceBundle(baseName, locale, false);
            } else {
                bundle = getResourceBundle(loggerName, locale, true);
            }
        }
        final String myKey = getFormat();
        final String msgPattern = (bundle == null || !bundle.containsKey(myKey)) ? myKey : bundle.getString(myKey);
        final Object[] array = argArray == null ? stringArgs : argArray;
        final FormattedMessage msg = new FormattedMessage(msgPattern, array);
        formattedMessage = msg.getFormattedMessage();
        throwable = msg.getThrowable();
        return formattedMessage;
    }
810462
public String getTitle() {
        final String key = String.format("pm.entity.%s", getId());
        final String message = pm.message(key);
        if (key.equals(message)) {
            if (getExtendzEntity() != null) {
                return getExtendzEntity().getTitle();
            }
        }
        return message;
    }
462821
protected String getMessage(Message message) {
    switch(message) {
      case CHECK:
        return "This conversion doesn't seem right. Do you want to correct it automatically?";
      case SUGGESTION:
        return "Writing for an international audience? Consider adding the metric equivalent.";
      case CHECK_UNKNOWN_UNIT:
        return "This conversion doesn't seem right, unable to recognize the used unit.";
      case UNIT_MISMATCH:
        return "These units don't seem to be compatible.";
      default:
        throw new RuntimeException("Unknown message type: " + message);
    }
  }
511910
@Override
    public String getMessage() {
        StringBuilder builder = new StringBuilder( super.getMessage() );
        for( LessFilePosition pos : positions ) {
            builder.append( "\n\t on line " ).append( pos.getLine() ).append( ", column " ).append( pos.getColumn() );
            if( pos.getFilename() != null ) {
                builder.append( ", file " ).append( pos.getFilename() );
            }
        }
        return builder.toString();
    }
437733
@Override
    public String getFormattedMessage() {
        // LOG4J2-763: cache formatted string in case obj changes later
        if (objectString == null) {
            objectString = String.valueOf(obj);
        }
        return objectString;
    }
1368545
public BaseConvertToMessage getConvertToMessage()
    {
        if (m_convertToMessage == null)
        {
            BaseMessageHeader trxMessageHeader = this.getMessage().getMessageHeader();
            String strMessageClass = (String)trxMessageHeader.get(TrxMessageHeader.MESSAGE_MARSHALLER_CLASS);
            String strPackage = (String)trxMessageHeader.get(TrxMessageHeader.BASE_PACKAGE);
            strMessageClass = ClassServiceUtility.getFullClassName(strPackage, strMessageClass);
            m_convertToMessage = (BaseConvertToMessage)ClassServiceUtility.getClassService().makeObjectFromClassName(strMessageClass);
            if (m_convertToMessage != null)
            	m_convertToMessage.init(this);
        }
        return m_convertToMessage;
    }
470468
public final String getExceptionMessage() {
        /* If the Exception information is set, return the translated message */
        if (getHdr2().getChoiceField(JsHdr2Access.EXCEPTION) != JsHdr2Access.IS_EXCEPTION_EMPTY) {
            return exceptionMessages.getFormattedMessage(MfpConstants.EXCEPTION_MESSAGE_KEY_PREFIX + getExceptionReason().toString()
                                                         , getExceptionInserts()
                                                         , "Failed to deliver message, rc=" + getExceptionReason() + ". Inserts: " + Arrays.asList(getExceptionInserts())
                            );
        }
        /* If no, just return null. */
        else {
            return null;
        }
    }
1076958
public String getString(String messageKey) {

		String retVal = messageKey;
		ResourceBundle rb = getResourceBundle();

		if (null != rb) {
			try {
				String tmpRetVal = rb.getString(messageKey);

				if (null != tmpRetVal) {
					retVal = tmpRetVal;
					// } else {
					// if (quiet) {
					//
					// logger.log(Level.FINEST,
					// "Cannot find message key {2}, in resource bundle {0} for locale {1}, will return the message key.",
					// new Object[] { ivBundleName, ivLocale.toString(),
					// messageKey });
					// if (logger.isLoggable(Level.FINEST)) {
					// logger.log(Level.FINEST, "stack trace is ", new
					// Exception());
					// }
					// }
				}

			} catch (MissingResourceException e) {
				// if (quiet) {
				//
				// logger.log(Level.FINEST,
				// "Cannot find message key {2}, in resource bundle {0} for locale {1}, due to exception {3}, will return the message key.",
				// new Object[] { ivBundleName, ivLocale.toString(), messageKey,
				// e });
				// }
			}
			// } else {
			// if (quiet) {
			//
			// // info so this can be fixed
			// logger.log(Level.FINEST,
			// "Cannot find message key {2}, in resource bundle {0} for locale {1}, will return the message key.",
			// new Object[] { ivBundleName, ivLocale.toString(), messageKey });
			// if (logger.isLoggable(Level.FINEST)) {
			// logger.log(Level.FINEST, "stack trace is ", new Exception());
			// }
			// }
		}

		return retVal;
	}
7353
public MessageToSend prepareMessageToSend() {
        originalMessage.getParts().clear();
        originalMessage.getParts().addAll(publicParts);
        return originalMessage;
    }
312417
public String getMessage()
    {
        String.format("Wrong Syntax for [%s]: %s", name,message);
        return  String.format("Wrong Syntax for [%s]: %s", name,message);
    }
1055439
public function getFormattedMessage()
    {
        $message = "";
        $message .= "[HTTP " . $this->httpStatus->getStatus() . "] - " . $this->getHttpMessage() . "\n";
        foreach ($this->errors as $key => $value) {
            if ($value instanceof PagSeguroError) {
                $message .= "$key [" . $value->getCode() . "] - " . $value->getMessage();
            }
        }
        return $message;
    }
1063284
public String getFormatName() {

        String result = "";
        if ((m_formatHandler != null) && (m_formatHandler.getCurrentFormat() != null)) {
            result = m_formatHandler.getCurrentFormat().getName();
        }
        return result;
    }
505751
@Override
  public String getMessage() {
    StringBuilder msg = new StringBuilder("\n");

    msg.append(super.getMessage());

    if (detail != null) {
      msg.append("\n");
      msg.append(detail.getMessage());
      if (detail.getCause() != null) {
        msg.append(detail.getCause().getMessage());
      }
    }
    return msg.toString();
  }
511185
public String getMessage() {
        String message = super.getMessage();
        if (m_iErrorCode != -1)
            message = message + " Error code: " + m_iErrorCode;
        return message;
    }
578342
@Override
    public String getMessage()
    {
        String msg = super.getMessage();
        if (msg == null) {
            msg = "N/A";
        }
        JsonLocation loc = getLocation();
        if (loc != null) {
            StringBuilder sb = new StringBuilder();
            sb.append(msg);
            sb.append('\n');
            sb.append(" at ");
            sb.append(loc.toString());
            return sb.toString();
        }
        return msg;
    }
784240
public String getMessage() {
	StringBuffer buf = new StringBuffer();
	if (code != UNSPECIFIED) {
	    buf.append(getCodeExplanation(code));
	}
	if (customMessage != null) {
	    buf.append(" Custom message: ");
	    buf.append(customMessage);
	}
	if (code != UNSPECIFIED) {
	    buf.append(" (error code ").append(String.valueOf(code)).append(")");
	}
	if (cause != null) {
	    buf.append(" [Nested exception message: ");
	    buf.append(cause.getMessage());
	    buf.append("]");
	}
	return buf.toString();
    }
499134
public String getMessage(final String code) {
    checkNotNull(code);

    for (ResourceBundle bundle : bundles) {
      try {
        return bundle.getString(code);
      }
      catch (MissingResourceException e) {
        log.trace(e.toString(), e);
      }
    }

    throw new ResourceNotFoundException(code);
  }