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

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

public class ConfigurationValidationException
     
     
extends ConfigurationException

Signals that the configuration is invalid or at least properties cannot be validated because there are no properties descriptors registered for them.

Implementation Notes:
Note that the message text is not part of the public API and may change without notice.
See Also:
Serialized Form

Constructor Summary
ConfigurationValidationException(ConfigurationKey key, List<PropertyException> propertyViolations, List<PropertyDescriptor> mandatoryProperties, UnknownProperties unknownProperties)
          Convenience constructor without root cause.
ConfigurationValidationException(Throwable cause, ConfigurationKey key, List<PropertyException> propertyViolations, List<PropertyDescriptor> mandatoryProperties, UnknownProperties unknownProperties)
          Default Constructor.
 
Method Summary
 List<PropertyDescriptor> getMandatoryProperties()
          Returns the list of mandatory properties for which no value has been provided.
 List<PropertyException> getPropertyViolations()
          Returns the list of violations.
 UnknownProperties getUnknownProperties()
          Returns the list of unknown properties.
 
Methods inherited from class de.smartics.properties.api.config.domain.ConfigurationException
getKey
 
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

ConfigurationValidationException

public ConfigurationValidationException(ConfigurationKey key,
                                        List<PropertyException> propertyViolations,
                                        List<PropertyDescriptor> mandatoryProperties,
                                        UnknownProperties unknownProperties)
Convenience constructor without root cause.

Parameters:
key - the key to the configuration that signaled problems.
propertyViolations - the list of violations.
mandatoryProperties - the list of mandatory properties for which no value has been provided.
unknownProperties - the list of unknown properties.

ConfigurationValidationException

public ConfigurationValidationException(Throwable cause,
                                        ConfigurationKey key,
                                        List<PropertyException> propertyViolations,
                                        List<PropertyDescriptor> mandatoryProperties,
                                        UnknownProperties unknownProperties)
Default Constructor.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
key - the key to the configuration that signaled problems.
propertyViolations - the list of violations.
mandatoryProperties - the list of mandatory properties for which no value has been provided.
unknownProperties - the list of unknown properties.
Method Detail

getPropertyViolations

public final List<PropertyException> getPropertyViolations()
Returns the list of violations.

Returns:
the list of violations.

getMandatoryProperties

public final List<PropertyDescriptor> getMandatoryProperties()
Returns the list of mandatory properties for which no value has been provided.

Returns:
the list of mandatory properties for which no value has been provided.

getUnknownProperties

public final UnknownProperties getUnknownProperties()
Returns the list of unknown properties.

Returns:
the list of unknown properties.


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