de.smartics.properties.api.core.domain
Class PropertyValueConversionException

Package class diagram package PropertyValueConversionException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.properties.api.core.app.PropertyRootException
                  extended by de.smartics.properties.api.core.domain.PropertyException
                      extended by de.smartics.properties.api.core.domain.PropertyDescriptorException
                          extended by 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

Constructor Summary
  PropertyValueConversionException(PropertyDescriptor propertyDescriptor, Object value)
          Convenience constructor with no cause.
protected PropertyValueConversionException(String message, Throwable cause, PropertyDescriptor propertyDescriptor, Object value)
          Internal constructor to provide a custom message.
  PropertyValueConversionException(Throwable cause, PropertyDescriptor propertyDescriptor, Object value)
          Default constructor.
 
Method Summary
 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

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.
Method Detail

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.