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

Package class diagram package PropertyExpressionMessageBean
java.lang.Object
  extended by de.smartics.exceptions.i18n.AbstractMessageBean
      extended by de.smartics.properties.api.core.app.AbstractBaseMessageBean
          extended by de.smartics.properties.api.core.domain.PropertyMessageBean
              extended by de.smartics.properties.api.core.domain.PropertyDescriptorMessageBean
                  extended by de.smartics.properties.api.core.domain.PropertyExpressionMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable
Direct Known Subclasses:
PropertyExpressionWithSourceMessageBean

public class PropertyExpressionMessageBean
     
     
extends PropertyDescriptorMessageBean

Provides context information for errors concerning a property value.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Constructor Summary
PropertyExpressionMessageBean(PropertiesCode code, Throwable cause, PropertyDescriptor propertyDescriptor, String expression)
          Default constructor.
PropertyExpressionMessageBean(PropertyDescriptor propertyDescriptor, String expression)
          Convenience constructor with no message and no root cause.
PropertyExpressionMessageBean(Throwable cause, PropertyDescriptor propertyDescriptor, String expression)
          Convenience constructor with cause.
 
Method Summary
 String getExpression()
          Returns the expression that failed to be resolved.
 
Methods inherited from class de.smartics.properties.api.core.domain.PropertyDescriptorMessageBean
getPropertyDescriptor
 
Methods inherited from class de.smartics.properties.api.core.domain.PropertyMessageBean
getPropertyKey
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
getCause, getCauseTrail, getCauseTrail, getClassLoader, getCode, getLocalizedInfo, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyExpressionMessageBean

public PropertyExpressionMessageBean(PropertyDescriptor propertyDescriptor,
                                     String expression)
Convenience constructor with no message and no root cause.

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

PropertyExpressionMessageBean

public PropertyExpressionMessageBean(Throwable cause,
                                     PropertyDescriptor propertyDescriptor,
                                     String expression)
Convenience constructor with cause.

Parameters:
cause - the cause (which is saved for later retrieval by the AbstractMessageBean.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.

PropertyExpressionMessageBean

public PropertyExpressionMessageBean(PropertiesCode code,
                                     Throwable cause,
                                     PropertyDescriptor propertyDescriptor,
                                     String expression)
Default constructor.

Parameters:
code - the error or exception code of the exception.
cause - the cause (which is saved for later retrieval by the AbstractMessageBean.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.