de.smartics.properties.api.core.domain
Class PropertyValueConversionException
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.PropertyValueConversionException
-
All Implemented Interfaces:
-
Serializable
-
Direct Known Subclasses:
-
PropertyValueConversionWithSourceException
-
public class PropertyValueConversionException
-
extends
PropertyDescriptorException
Signals that the value does not match the given constraints.
-
See Also:
-
Serialized Form
Method Summary |
Serializable |
getValue() Returns the value of the property that does not meet the constraints. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
PropertyValueConversionException
public PropertyValueConversionException(PropertyDescriptor propertyDescriptor,
Object value)
-
Convenience constructor with no cause.
-
Parameters:
-
propertyDescriptor
- the key descriptor the property raising the exception.
-
value
- the value of the property that does not meet the constraints. If the value is not serializable, its string representation is stored.
PropertyValueConversionException
public PropertyValueConversionException(Throwable cause,
PropertyDescriptor propertyDescriptor,
Object value)
-
Default constructor.
-
Parameters:
-
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.
-
value
- the value of the property that cannot be converted. If the value is not serializable, its string representation is stored.
PropertyValueConversionException
protected PropertyValueConversionException(String message,
Throwable cause,
PropertyDescriptor propertyDescriptor,
Object value)
-
Internal constructor to provide a custom message.
-
Parameters:
-
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.
-
value
- the value of the property that cannot be converted. If the value is not serializable, its string representation is stored.
getValue
public final Serializable getValue()
-
Returns the value of the property that does not meet the constraints.
-
-
Returns:
-
the value of the property that does not meet the constraints.
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.