de.smartics.properties.api.config.domain
Class DuplicatePropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.smartics.properties.api.core.app.PropertyRootException
de.smartics.properties.api.config.domain.ConfigurationException
de.smartics.properties.api.config.domain.DuplicatePropertyException
-
All Implemented Interfaces:
-
Serializable
-
public class DuplicatePropertyException
-
extends
ConfigurationException
Signals that a property has been encountered twice.
-
See Also:
-
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
DuplicatePropertyException
public DuplicatePropertyException(ConfigurationKey key,
Property currentProperty,
Property newProperty)
-
Default Constructor.
-
Parameters:
-
key
- the key to the configuration that signaled problems.
-
currentProperty
- the currently active property.
-
newProperty
- the new encountered property with the same key.
getCurrentProperty
public final Property getCurrentProperty()
-
Returns the currently active property.
-
-
Returns:
-
the currently active property.
getNewProperty
public final Property getNewProperty()
-
Returns the new encountered property with the same key.
-
-
Returns:
-
the new encountered property with the same key.
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.