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:
Serializable
public class BindValidationException extends 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 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
Method Detail
getValidationErrors
public ValidationErrors getValidationErrors()
Return the validation errors that caused the exception.- Returns:
- the validationErrors the validation errors