Interface L10NMessage

    • Method Detail

      • getL10NMessage

        String getL10NMessage​(Locale loc)
        Use this method to get localized error message directly.
        Parameters:
        loc - Locale of the error message.
        Returns:
        localized error message.
      • getResourceBundleName

        String getResourceBundleName()
        Use this method to chain this exception with another to get localized error messge use getL10NMessage method
        Returns:
        ResourceBundle Name associated with this error message.
      • getErrorCode

        String getErrorCode()
        Use this method to chain this exception with another to get localized error messge use getL10NMessage method
        Returns:
        Error code associated with this error message.
      • getMessageArgs

        Object[] getMessageArgs()
        Use this method to chain this exception with another to get localized error messge use getL10NMessage method
        Returns:
        arguments for formatting this error message. You need to use MessageFormat class to format the message It can be null.
      • getMessage

        String getMessage()
        Use this method to get error message in default ENGLISH locale.
        Returns:
        gets error message