Class TranslatableException

java.lang.Object
java.lang.Throwable
java.lang.Exception
velox.gui.utils.localization.translatable.exceptions.TranslatableException
All Implemented Interfaces:
Serializable, TranslatableComponent

public class TranslatableException extends Exception implements TranslatableComponent
The exception with a message that could be localized for different locales. The same as TranslatableRuntimeException but extends Exception (i.e. checked exception).
See Also:
  • Constructor Details

    • TranslatableException

      public TranslatableException()
    • TranslatableException

      public TranslatableException(TranslatableComponent message)
  • Method Details

    • toLocalizedString

      public String toLocalizedString(com.ibm.icu.util.ULocale locale)
      Specified by:
      toLocalizedString in interface TranslatableComponent
      Parameters:
      locale -
      Returns:
      localized string in specific locale