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]