org.springframework.boot.context.properties.bind.validation

Class BindValidationException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • org.springframework.boot.context.properties.bind.validation.BindValidationException
  • All Implemented Interfaces:
    java.io.Serializable


    public class BindValidationException
    extends java.lang.RuntimeException
    Error thrown when validation fails during a bind operation.
    Since:
    2.0.0
    See Also:
    ValidationErrors, ValidationBindHandler, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      ValidationErrors getValidationErrors()
      Return the validation errors that caused the exception.
      • 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
    • Method Detail

      • getValidationErrors

        public ValidationErrors getValidationErrors()
        Return the validation errors that caused the exception.
        Returns:
        the validationErrors the validation errors