|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.ConfigurationValidationException
public class ConfigurationValidationException
Signals that the configuration is invalid or at least properties cannot be validated because there are no properties descriptors registered for them.
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 |
---|
public ConfigurationValidationException(ConfigurationKey key, List<PropertyException> propertyViolations, List<PropertyDescriptor> mandatoryProperties, UnknownProperties unknownProperties)
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.
public ConfigurationValidationException(Throwable cause, ConfigurationKey key, List<PropertyException> propertyViolations, List<PropertyDescriptor> mandatoryProperties, UnknownProperties unknownProperties)
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 |
---|
public final List<PropertyException> getPropertyViolations()
public final List<PropertyDescriptor> getMandatoryProperties()
public final UnknownProperties getUnknownProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |