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()  

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ValidationException

      public ValidationException​(Validated<?> validation)
  • Method Details

    • getValidation

      public Validated<?> getValidation()