de.smartics.properties.api.core.domain
Class DuplicatePropertyDeclarationException
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.DuplicatePropertyDeclarationException
-
All Implemented Interfaces:
-
Serializable
-
public class DuplicatePropertyDeclarationException
-
extends
PropertyException
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 |
DuplicatePropertyDeclarationException
public DuplicatePropertyDeclarationException(PropertyDescriptor currentDescriptor,
PropertyDescriptor newDescriptor)
-
Constructor.
-
Implementation Notes:
-
Since this is an exception we do not check that the key of the current descriptor and that of the new descriptor matches. But these two keys must be equal.
-
Parameters:
-
currentDescriptor
- the previously encountered and currently active property.
-
newDescriptor
- the new encountered property descriptor with the same key.
getCurrentDescriptor
public final PropertyDescriptor getCurrentDescriptor()
-
Returns the previously encountered and currently active property.
-
-
Returns:
-
the previously encountered and currently active property.
getNewDescriptor
public final PropertyDescriptor getNewDescriptor()
-
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.