Class FileImportError

    • Constructor Detail

      • FileImportError

        public FileImportError​(String message,
                               String i18nMessageKey,
                               Serializable[] i18nMessageArgs)
        Creates a new FileImportError instance.
        Parameters:
        message - The error message.
        i18nMessageKey - The message key for internationalization, used as an identifier to look up the localized display message.
        i18nMessageArgs - Optional arguments passed to the message formatter when localizing the message, see i18nMessageKey.
    • Method Detail

      • getLocalizedMessage

        public String getLocalizedMessage​(Locale locale)
        Returns the localized error message for the given locale.
        Parameters:
        locale - the locale to use for localization
        Returns:
        the localized error message
      • getMessage

        public String getMessage()
        The error message.