Class TranslatableRuntimeException

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

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

    • TranslatableRuntimeException

      public TranslatableRuntimeException()
    • TranslatableRuntimeException

      public TranslatableRuntimeException(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