Maybe it would be better to perform checks during validation ? from mobile (sorry for typos ;)
On Tue, Jun 29, 2021, 22:33 vahid ghasemi <vahidghasemi...@gmail.com> wrote: > Hello > How can I pass an error in an onSubmit method? > I have some errors that can detect in the onSubmit method. > I throw exceptions at end of the onSubmit method. > In the catch block, I call the error method, but after that, I expect to > don't go into the afterOnSubmit method, but he will go and I am getting > the wrong response. >