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

Package class diagram package DuplicatePropertyDefinitionException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.exceptions.AbstractCoreRuntimeException
                  extended by de.smartics.exceptions.i18n.AbstractMessageRuntimeException
                      extended by de.smartics.properties.api.core.app.PropertyRootException
                          extended by de.smartics.properties.api.config.codes.ConfigurationRootException
                              extended by de.smartics.properties.api.config.domain.ConfigurationException
                                  extended by de.smartics.properties.api.config.domain.DuplicatePropertyDefinitionException
All Implemented Interfaces:
de.smartics.exceptions.CoreException, de.smartics.exceptions.i18n.LocalizedException, Serializable

public class DuplicatePropertyDefinitionException
     
     
extends ConfigurationException

Signals that a property descriptor has been encountered twice.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageRuntimeException
messageBean
 
Fields inherited from class de.smartics.exceptions.AbstractCoreRuntimeException
info
 
Constructor Summary
DuplicatePropertyDefinitionException(ConfigurationKey<?> key, PropertyDefinition currentDefinition, PropertyDefinition newDefinition)
          Constructor.
 
Method Summary
 PropertyDefinition getCurrentDefinition()
          Returns the previously encountered and currently active property.
 PropertyDefinition getNewDefinition()
          Returns the new encountered property descriptor with the same key.
 
Methods inherited from class de.smartics.properties.api.config.domain.ConfigurationException
getKey
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractMessageRuntimeException
createMessages, createMessages, getCauseTrail, getCauseTrail, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessageBean, getMessages, getMessages, toString
 
Methods inherited from class de.smartics.exceptions.AbstractCoreRuntimeException
getCause, getClassLoader, getCode, getId, getTime, truncateCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.smartics.exceptions.CoreException
getCause, getCode, getId, getStackTrace, getTime, setStackTrace, truncateCause
 

Constructor Detail

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.
Method Detail

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.