Package io.dropwizard.configuration
Class ConfigurationValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.dropwizard.configuration.ConfigurationException
io.dropwizard.configuration.ConfigurationValidationException
- All Implemented Interfaces:
Serializable
An exception thrown where there is an error validating a configuration object.
- See Also:
-
Field Summary
Fields inherited from class io.dropwizard.configuration.ConfigurationException
NEWLINE
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationValidationException
(String path, Set<jakarta.validation.ConstraintViolation<T>> errors) Creates a new ConfigurationException for the given path with the given errors. -
Method Summary
Modifier and TypeMethodDescriptionSet<jakarta.validation.ConstraintViolation<?>>
Returns the set of constraint violations in the configuration.Methods inherited from class io.dropwizard.configuration.ConfigurationException
formatMessage, getErrors
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigurationValidationException
public ConfigurationValidationException(String path, Set<jakarta.validation.ConstraintViolation<T>> errors) Creates a new ConfigurationException for the given path with the given errors.- Type Parameters:
T
- the type of the root bean of a constraint violation- Parameters:
path
- the bad configuration patherrors
- the errors in the path
-
-
Method Details
-
getConstraintViolations
Returns the set of constraint violations in the configuration.- Returns:
- the set of constraint violations
-