Re: [appfuse-user] Chane default sql error messages

2007-04-07 Thread nutanc
Hi, Thanks again for the fast response.This should work.I will try it.But is there an easier way around it.I mean everything in spring seems to be configurable using some xml files.I also read somewhere that the error message can be overwritten in some sql-error-codes.xml. I am just not finding th

Re: [appfuse-user] Chane default sql error messages

2007-04-06 Thread Nathan Anderson
I believe the way to do that is to catch the Exception and then output an i18n message. But since the Exception happens in the Model [DAO], you probably need to catch the exception in your Manager class and throw your own exception to the view layer. At least that would be the way to maintain

Re: [appfuse-user] Chane default sql error messages

2007-04-05 Thread nutanc
Hi, Thanks for the response.The errors are not from ApplicationResources.properties .I am getting eception errors.Specifically I want to change the error/exception message for foreign key integrity constraint deletion exception. -Chaitanya melinate wrote: > > Most of the error messages are in th

Re: [appfuse-user] Chane default sql error messages

2007-04-05 Thread Nathan Anderson
Most of the error messages are in the applicationResources*.properties files. But I'm not sure if you are getting one of these messages or something from an exception. Nathan nutanc wrote: Hi all, I am trying to achieve the following.Whenever a user tries to delete a record which is liked we

[appfuse-user] Chane default sql error messages

2007-04-04 Thread nutanc
Hi all, I am trying to achieve the following.Whenever a user tries to delete a record which is liked we are getting an error message saying Parent record found, Foreign key exists etc.What I want to do is to be able to custom define the error message.Where do I need to change that.I think I need t