|
||||||||||
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.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.
Constructor Summary | |
---|---|
PropertyValidationException(PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value) Convenience constructor with no message and no root cause. |
|
PropertyValidationException(String message, PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value) Convenience constructor with no root cause. |
|
PropertyValidationException(String message, Throwable cause, PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value) Default constructor. |
|
PropertyValidationException(Throwable cause, PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value) Convenience constructor with no message. |
Method Summary | |
---|---|
List<? extends PropertyConstraint<?>> |
getConstraints() Returns the property constraint that failed to be met. |
Serializable |
getValue() Returns the value of the property that does not meet the constraints. |
Methods inherited from class de.smartics.properties.api.core.domain.PropertyDescriptorException |
---|
appendMetaDataMessage, getMetaDataMessage, getPropertyDescriptor |
Methods inherited from class de.smartics.properties.api.core.domain.PropertyException |
---|
getPropertyKey |
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 |
---|
public PropertyValidationException(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 PropertyValidationException(String message, PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value)
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).
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 PropertyValidationException(Throwable cause, PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value)
cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)
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 PropertyValidationException(String message, Throwable cause, PropertyDescriptor propertyDescriptor, List<? extends PropertyConstraint<?>> constraints, Object value)
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).
cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)
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.
Method Detail |
---|
public final List<? extends PropertyConstraint<?>> getConstraints()
public final Serializable getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |