|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException de.smartics.exceptions.AbstractCoreRuntimeException de.smartics.exceptions.i18n.AbstractMessageRuntimeException de.smartics.properties.api.core.app.PropertyRootException de.smartics.properties.api.core.domain.PropertyException de.smartics.properties.api.core.domain.PropertyDescriptorException de.smartics.properties.api.core.domain.PropertyValidationException
public class PropertyValidationException
Signals that the value does not match the given constraints.
Field Summary |
---|
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageRuntimeException |
---|
messageBean |
Fields inherited from class de.smartics.exceptions.AbstractCoreRuntimeException |
---|
info |
Constructor Summary | |
---|---|
PropertyValidationException(PropertyValidationMessageBean message) Default constructor. |
Method Summary | |
---|---|
PropertyValidationMessageBean |
getMessageBean() |
static PropertyValidationException |
invalid(PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value) Creates an instance of the validation exception. |
Methods inherited from class de.smartics.exceptions.i18n.AbstractMessageRuntimeException |
---|
createMessages, createMessages, getCauseTrail, getCauseTrail, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages, toString |
Methods inherited from class de.smartics.exceptions.AbstractCoreRuntimeException |
---|
getCause, getClassLoader, getCode, getId, getTime, truncateCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.smartics.exceptions.CoreException |
---|
getCause, getCode, getId, getStackTrace, getTime, setStackTrace, truncateCause |
Constructor Detail |
---|
public PropertyValidationException(PropertyValidationMessageBean message)
message
- the detail message (which is saved for later retrieval by the
AbstractMessageRuntimeException.getMessage()
method).
Method Detail |
---|
public static final PropertyValidationException invalid(PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value)
propertyDescriptor
- the descriptor of the property raising the exception.
constraints
- the property constraints that failed to be met.
value
- the value of the property that does not meet the constraints. If the value is not serializable, its string representation is stored.
public final PropertyValidationMessageBean getMessageBean()
getMessageBean
in class
PropertyDescriptorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |