Package fr.gouv.vitam.common.i18n

# 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 Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Locale`
  `DEFAULT_LOCALE`
  Default Locale

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Map<String,String>`
  `getAllMessages()`
  Retrieve all the messages
  `static final String`
  `getFromKey(String key)`
  Retrieve value of the message key
  `static final String`
  `getFromKey(String key, Object... args)`
  Retrieve value of the message key

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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