Class VitamErrorMessages

java.lang.Object
fr.gouv.vitam.common.i18n.VitamErrorMessages

public class VitamErrorMessages extends Object
Vitam Error Messages Helper for take value of the key in vitam-error-messages.properties
  • Field Details

    • DEFAULT_LOCALE

      public static final Locale DEFAULT_LOCALE
      Default Locale
  • Method Details

    • getAllMessages

      public static Map<String,String> getAllMessages()
      Retrieve all the messages
      Returns:
      map of messages
    • getFromKey

      public static final String getFromKey(String key)
      Retrieve value of the message key
      Parameters:
      key - key of the message
      Returns:
    • getFromKey

      public static final String getFromKey(String key, Object... args)
      Retrieve value of the message key
      Parameters:
      key - of the message
      args - the arguments to use as MessageFormat.format(mesg, args)
      Returns:
      value of the message key