|
||||||||||
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.exceptions.AbstractCoreRuntimeException de.smartics.exceptions.i18n.AbstractMessageRuntimeException de.smartics.properties.api.core.app.PropertyRootException de.smartics.properties.api.config.codes.ConfigurationRootException 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.
Field Summary |
---|
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageRuntimeException |
---|
messageBean |
Fields inherited from class de.smartics.exceptions.AbstractCoreRuntimeException |
---|
info |
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. |
String |
getMandatoryPropertiesAsText() Returns the missing mandatory properties as message text. |
int |
getMandatoryPropertiesCount() Returns the count of missing mandatory properties. |
List<PropertyException> |
getPropertyViolations() Returns the list of violations. |
UnknownProperties |
getUnknownProperties() Returns the list of unknown properties. |
String |
getUnknownPropertiesAsText() Returns the unknown properties as message text. |
int |
getUnknownPropertiesCount() Returns the count of unknown properties. |
int |
getViolationCount() Returns the count of violations. |
String |
getViolationsAsText(Locale locale) Returns the violations as message text. |
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 |
---|
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
AbstractCoreRuntimeException.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()
@MessageParam(value="violations") public final String getViolationsAsText(Locale locale)
locale
- the locale to use.
@MessageParam(value="violationCount") public final int getViolationCount()
@MessageParam(value="mandatoryProperties") public final String getMandatoryPropertiesAsText()
@MessageParam(value="mandatoryPropertiesCount") public final int getMandatoryPropertiesCount()
@MessageParam(value="unknownProperties") public final String getUnknownPropertiesAsText()
@MessageParam(value="unknownPropertiesCount") public final int getUnknownPropertiesCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |