These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: SqlException Message customization?
PostPosted: Sun Oct 28, 2007 11:56 am 
Newbie

Joined: Tue Oct 16, 2007 4:45 pm
Posts: 6
hello,

i was looking for information for changing the sqlexception message... (IE foreign key exception when trying to delete an item).
is there a way of customizing this message for an entire application?

thanks!!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 31, 2007 2:05 pm 
Beginner
Beginner

Joined: Wed Aug 29, 2007 1:25 pm
Posts: 26
Location: Recife, PE, Brazil
a way you could do is to add a webmodule and put your specific logic in error handle

inside it you could check it the Exception that has been thrown is a sqlexception


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.