I want to know if there are any default globalErrors in Spring framework. I need to create my own custom validator by implementing org.springframework.validation.Validator
interface. And there I add a globalError
by errors.reject()
.
In controller class I have to catch this custom validation error If it's occurred. My plan is to catch it by using getGlobalErrors
method. But if there any default globalErrors in spring, they will be also caught by getGlobalErrors
method.
So I really need to know if there are any default globalErrors
in Spring framework.