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 that in appfuse.Let me try this for now.If anyone knows how to
configure sql-error-codes.xm,please do let me know.Thanks
-Chaitanya

melinate wrote:
> 
> 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 separation of the layers.  The User class does this so you 
> probably want to either download the full source or take a look at it on 
> fisheye:
> 
>    *http://tinyurl.com/3a42ej
> 
> Hope that helps,
> Nathan
> *
> nutanc wrote:
>> 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 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 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
>>>> to
>>>> do
>>>> something with sql-error-codes.xml.But that is not there in appfuse.Any
>>>> help
>>>> is appreciated.Thanks.
>>>> -Chaitanya
>>>>   
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>     
>>
>>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Chane-default-sql-error-messages-tf3525045s2369.html#a9882560
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to