de.smartics.properties.api.core.domain
Class PropertyValueResolveException
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.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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
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.