de.smartics.properties.api.config.domain
Class PropertyValidationWithSourceException

Package class diagram package PropertyValidationWithSourceException
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.PropertyValidationException
                              extended by de.smartics.properties.api.config.domain.PropertyValidationWithSourceException
All Implemented Interfaces:
Serializable

public class PropertyValidationWithSourceException
     
     
extends PropertyValidationException

Signals that the value does not match the given constraints and provides information about the source location of the culprit.

See Also:
Serialized Form

Constructor Summary
PropertyValidationWithSourceException(PropertyValidationException original, PropertyLocation source)
          Default constructor.
 
Method Summary
 PropertyLocation getSource()
          Returns the source where the property value has been defined.
 
Methods inherited from class de.smartics.properties.api.core.domain.PropertyValidationException
getConstraints, getValue
 
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

PropertyValidationWithSourceException

public PropertyValidationWithSourceException(PropertyValidationException original,
                                             PropertyLocation source)
Default constructor.

Parameters:
original - the original property validation exception without the origin information.
source - the source where the property value has been defined.
Method Detail

getSource

public final PropertyLocation getSource()
Returns the source where the property value has been defined.

Returns:
the source where the property value has been defined.


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