de.smartics.properties.api.config.domain
Class DuplicatePropertyDefinitionException
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.DuplicatePropertyDefinitionException
-
All Implemented Interfaces:
-
Serializable
-
public class DuplicatePropertyDefinitionException
-
extends
ConfigurationException
Signals that a property descriptor 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 |
DuplicatePropertyDefinitionException
public DuplicatePropertyDefinitionException(ConfigurationKey key,
PropertyDefinition currentDefinition,
PropertyDefinition newDefinition)
-
Constructor.
-
Implementation Notes:
-
Since this is an exception we do not check that the key of the current definition and that of the new definition matches. But these three keys must be equal.
-
Parameters:
-
key
- the key to the configuration that signaled problems.
-
currentDefinition
- the previously encountered and currently active property.
-
newDefinition
- the new encountered property descriptor with the same key.
getCurrentDefinition
public final PropertyDefinition getCurrentDefinition()
-
Returns the previously encountered and currently active property.
-
-
Returns:
-
the previously encountered and currently active property.
getNewDefinition
public final PropertyDefinition getNewDefinition()
-
Returns the new encountered property descriptor with the same key.
-
-
Returns:
-
the new encountered property descriptor with the same key.
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.