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:
de.espirit.common.LocalizableError
,Serializable
public class InappropriateValueException
extends de.espirit.common.UncheckedException
Exception thrown if a value is not appropriate.
- Since:
- 4.2.400
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInappropriateValueException
(GomFormElement form, Language language, Object value, de.espirit.firstspirit.client.common.locale.LocalizableException e) Create a new instance. -
Method Summary
Methods inherited from class de.espirit.common.UncheckedException
constructContext, getContext, getErrorCode, getLocalizedMessage, isInfoOnly, setErrorCode, setInfo, wrapOrRethrow
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 GomFormElement form, Language language, Object value, @NotNull de.espirit.firstspirit.client.common.locale.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
-