Class InappropriateValueException

All Implemented Interfaces:
LocalizableError, Serializable

public class InappropriateValueException extends UncheckedException
Exception thrown if a value is not appropriate.
Since:
4.2.400
See Also:
  • Constructor Details

    • InappropriateValueException

      public InappropriateValueException(@NotNull @NotNull GomFormElement form, Language language, Object value, @NotNull @NotNull LocalizableException e)
      Create a new instance.
      Parameters:
      form - the gom form
      language - the language the value was going to be applied for
      value - the value that was going to be applied.
      e - localized container for causing exceptions
      Since:
      4.2.400
  • Method Details

    • getForm

      @Nullable public @Nullable GomFormElement getForm()
      Get the form element the value has been evaluated to be inappropriate for.
      Returns:
      The form element Will return null if this exception has been serialized.
      Since:
      4.2.400
    • getLanguage

      @Nullable public @Nullable Language getLanguage()
      Get the language the value was going to be applied for.
      Returns:
      The language used. Will return null if this exception has been serialized.
      Since:
      4.2.400
    • getValue

      @Nullable public @Nullable Object getValue()
      Get the value that was going to be applied.
      Returns:
      The prospective value. Will return null if this exception has been serialized.
      Since:
      4.2.400