Skip to Content
0
Sep 20, 2005 at 05:01 AM

how to overwrite standard errors?

27 Views

Hi

I have a validation on one of my applications, where user has to feed in only numeric data.

And if he doesn't an error is to be thrown which i have defined in the message pool.

But instaed of showing the error message of the message pool, a standard error message is shown:

Error during parse, please give value in form -2,733.34

Model binding has been done, and the context attribute is of simple type, which is defined as decimal.

Is there a way in which we can catch the standard error before it is thrown and overwrite it with our own message??

Thanks & regards,

Anupreet