Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
io.micrometer.core.instrument.config.validate.ValidationException
- All Implemented Interfaces:
java.io.Serializable
@Incubating(since="1.5.0") public class ValidationException extends java.lang.IllegalStateException
Turns a set of
Validated.Invalid into a throwable exception, which is used to throw an unchecked exception
at runtime when one or more properties are invalid.- Since:
- 1.5.0
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ValidationException(Validated<?> validation) -
Method Summary
Modifier and Type Method Description Validated<?>getValidation()