de.espirit.firstspirit.forms
Class InappropriateValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.espirit.common.UncheckedException
                  extended by 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:
Serialized Form

Constructor Summary
InappropriateValueException(GomFormElement form, Language language, Object value, de.espirit.firstspirit.client.common.locale.LocalizableException e)
          Create a new instance.
 
Method Summary
 GomFormElement getForm()
          Get the form element the value has been evaluated to be inappropriate for.
 Language getLanguage()
          Get the language the value was going to be applied for.
 Object getValue()
          Get the value that was going to be applied.
 
Methods inherited from class de.espirit.common.UncheckedException
constructContext, getContext, getErrorCode, getLocalizedMessage, setErrorCode, wrapOrRethrow
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InappropriateValueException

public InappropriateValueException(@NotNull
                                   GomFormElement form,
                                   Language language,
                                   Object value,
                                   de.espirit.firstspirit.client.common.locale.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 Detail

getForm

@NotNull
public GomFormElement getForm()
Get the form element the value has been evaluated to be inappropriate for.

Returns:
The form element.
Since:
4.2.400

getLanguage

public Language getLanguage()
Get the language the value was going to be applied for.

Returns:
The language used.
Since:
4.2.400

getValue

public Object getValue()
Get the value that was going to be applied.

Returns:
The prospective value.
Since:
4.2.400


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480