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
public class ConfigurationValidationException extends ConfigurationException
An exception thrown where there is an error validating a configuration object.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.dropwizard.configuration.ConfigurationException
NEWLINE
-
-
Constructor Summary
Constructors Constructor Description ConfigurationValidationException(String path, Set<jakarta.validation.ConstraintViolation<T>> errors)
Creates a new ConfigurationException for the given path with the given errors.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<jakarta.validation.ConstraintViolation<?>>
getConstraintViolations()
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 Detail
-
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 Detail
-
getConstraintViolations
public Set<jakarta.validation.ConstraintViolation<?>> getConstraintViolations()
Returns the set of constraint violations in the configuration.- Returns:
- the set of constraint violations
-
-