|
||||||||||
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.ReadOnlyPropertyException
public class ReadOnlyPropertyException
Signals that the a read-only property was requested to be updated.
Constructor Summary | |
---|---|
ReadOnlyPropertyException(PropertyDescriptor propertyDescriptor, Object currentValue, Object rejectedValue) Convenience constructor with no message and no root cause. |
|
ReadOnlyPropertyException(String message, Throwable cause, PropertyDescriptor propertyDescriptor, Object currentValue, Object rejectedValue) Default constructor. |
|
ReadOnlyPropertyException(Throwable cause, PropertyDescriptor propertyDescriptor, Object currentValue, Object rejectedValue) Convenience constructor with no message. |
Method Summary | |
---|---|
Serializable |
getCurrentValue() Returns the current value of the property that has not been changed. |
Serializable |
getRejectedValue() Returns the value the property was requested to change to but has been rejected. |
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 ReadOnlyPropertyException(PropertyDescriptor propertyDescriptor, Object currentValue, Object rejectedValue)
propertyDescriptor
- the descriptor of the property raising the exception.
currentValue
- the current value of the property that has not been changed.
rejectedValue
- the value the property was requested to change to but has been rejected.
public ReadOnlyPropertyException(Throwable cause, PropertyDescriptor propertyDescriptor, Object currentValue, Object rejectedValue)
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.
currentValue
- the current value of the property that has not been changed.
rejectedValue
- the value the property was requested to change to but has been rejected.
public ReadOnlyPropertyException(String message, Throwable cause, PropertyDescriptor propertyDescriptor, Object currentValue, Object rejectedValue)
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.
currentValue
- the current value of the property that has not been changed.
rejectedValue
- the value the property was requested to change to but has been rejected.
Method Detail |
---|
public final Serializable getCurrentValue()
public final Serializable getRejectedValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |