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

Package class diagram package PropertyValueResolveException
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.PropertyValueResolveException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PropertyValueResolveWithSourceException

public class PropertyValueResolveException
     
     
extends PropertyDescriptorException

Signals that the value cannot be resolve. Therefore the expression contains unresolved place holders.

See Also:
Serialized Form

Constructor Summary
  PropertyValueResolveException(PropertyDescriptor propertyDescriptor, String expression)
          Convenience constructor with no cause.
protected PropertyValueResolveException(String message, Throwable cause, PropertyDescriptor propertyDescriptor, String expression)
          Internal constructor to provide a custom message.
  PropertyValueResolveException(Throwable cause, PropertyDescriptor propertyDescriptor, String expression)
          Default constructor.
 
Method Summary
 String getExpression()
          Returns the expression that failed to be resolved.
 
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

PropertyValueResolveException

public PropertyValueResolveException(PropertyDescriptor propertyDescriptor,
                                     String expression)
Convenience constructor with no cause.

Parameters:
propertyDescriptor - the key descriptor the property raising the exception.
expression - the expression that failed to be resolved.

PropertyValueResolveException

public PropertyValueResolveException(Throwable cause,
                                     PropertyDescriptor propertyDescriptor,
                                     String expression)
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.
expression - the expression that failed to be resolved.

PropertyValueResolveException

protected PropertyValueResolveException(String message,
                                        Throwable cause,
                                        PropertyDescriptor propertyDescriptor,
                                        String expression)
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.
expression - the expression that failed to be resolved.
Method Detail

getExpression

public final String getExpression()
Returns the expression that failed to be resolved.

Returns:
the expression that failed to be resolved.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.