Class FileImportError

java.lang.Object
de.xima.fc.certificate.mgmt.io.FileImportError
All Implemented Interfaces:
Serializable

public class FileImportError extends Object implements Serializable
See Also:
  • Constructor Details

    • 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 Details

    • fromException

      public static FileImportError fromException(Exception exception)
    • localizedError

      public static FileImportError localizedError(String message, String i18nMessageKey, Serializable... i18nMessageArgs)
    • simpleError

      public static FileImportError simpleError(String message)
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMessage

      public String getMessage()
      The error message.