Package de.espirit.firstspirit.forms
Class InappropriateValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.espirit.common.UncheckedException
de.espirit.firstspirit.forms.InappropriateValueException
- All Implemented Interfaces:
LocalizableError
,Serializable
Exception thrown if a value is not appropriate.
- Since:
- 4.2.400
- See Also:
-
Constructor Summary
ConstructorDescriptionInappropriateValueException
(@NotNull GomFormElement form, Language language, Object value, @NotNull LocalizableException e) Create a new instance. -
Method Summary
Modifier and TypeMethodDescription@Nullable GomFormElement
getForm()
Get the form element the value has been evaluated to be inappropriate for.@Nullable Language
Get the language the value was going to be applied for.@Nullable Object
getValue()
Get the value that was going to be applied.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 formlanguage
- the language the value was going to be applied forvalue
- the value that was going to be applied.e
- localized container for causing exceptions- Since:
- 4.2.400
-
-
Method Details
-
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
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
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
-