Class VitamErrorMessages


  • public class VitamErrorMessages
    extends java.lang.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 java.util.Locale DEFAULT_LOCALE
      Default Locale
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.String> getAllMessages()
      Retrieve all the messages
      static java.lang.String getFromKey​(java.lang.String key)
      Retrieve value of the message key
      static java.lang.String getFromKey​(java.lang.String key, java.lang.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 Detail

      • DEFAULT_LOCALE

        public static final java.util.Locale DEFAULT_LOCALE
        Default Locale
    • Method Detail

      • getAllMessages

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

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

        public static final java.lang.String getFromKey​(java.lang.String key,
                                                        java.lang.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