Interface IErrorMessageSource


  • public interface IErrorMessageSource
    Interface representing a message source that stores messages by key and can perform variable substitution.
    Since:
    1.2.6
    Author:
    Igor Vaynberg (ivaynberg)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getMessage​(java.lang.String key, java.util.Map<java.lang.String,​java.lang.Object> vars)
      Retrieves a message with the given key.
    • Method Detail

      • getMessage

        java.lang.String getMessage​(java.lang.String key,
                                    java.util.Map<java.lang.String,​java.lang.Object> vars)
        Retrieves a message with the given key.
        Parameters:
        key - a message key
        vars - variables to substitute
        Returns:
        message or null if not found