View Single Post
  #1 (permalink)  
Old 05-12-2008, 04:24 PM
kasipandian kasipandian is offline
Member
 
Join Date: Feb 2008
Posts: 7
kasipandian is on a distinguished road
How to get error codes using java program
Dear Friends,

My requirement is to get the SQL error code through my program whenever the exception thrown. I've to show this error code in JSP. Now I'm getting a error codes with messages. I'm using spring frame work. So If there any database related exceptions I'm getting DataAccessException . I don't know how to get the error code from DataAccessException to . In SQLException we have a method getErrorCode(). However I'm not getting any SQLException, So I cannot use this. So please help me to get the error code from DataAccessException . Any help would be appreciated.

Thanks
Kasi.

Last edited by kasipandian : 05-12-2008 at 04:27 PM.
Reply With Quote
Sponsored Links