spring-framework / org.springframework.validation / BindingResultUtils / getRequiredBindingResult

getRequiredBindingResult

open static fun getRequiredBindingResult(model: MutableMap<*, *>, name: String): BindingResult

Find a required BindingResult for the given name in the given model.

Parameters

model - the model to search

name - the name of the target object to find a BindingResult for

Exceptions

IllegalStateException - if no BindingResult found

Return
the BindingResult (never null)