open class MethodArgumentNotValidException : MethodArgumentResolutionException
Exception to be thrown when a method argument fails validation perhaps as a result of @Valid
style validation, or perhaps because it is required.
Author
Brian Clozel
Author
Rossen Stoyanchev
Since
4.0.1
MethodArgumentNotValidException(message: Message<*>, parameter: MethodParameter)
Create a new instance with the invalid MethodArgumentNotValidException(message: Message<*>, parameter: MethodParameter, bindingResult: BindingResult)
Create a new instance with the invalid |
fun getBindingResult(): BindingResult
Return the BindingResult if the failure is validation-related, or |
fun getMethodParameter(): MethodParameter
Return the MethodParameter that was rejected. |