Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Spring
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Spring section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2008, 08:20 AM
Authorized User
 
Join Date: Feb 2008
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 DataAcces****ception . I don't know how to get the error code from DataAcces****ception 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 DataAcces****ception . Any help would be appreciated.

Thanks
Kasi.
__________________
Regards
Kasi
 
Old August 13th, 2008, 12:57 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Just for reference of members, solution is given a the bellow URL

http://www.java-forums.org/web-frame...a-program.html

Last post in the discussion.

- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
java program help chris1012 Java Basics 3 November 8th, 2007 09:35 AM
java program todeepak_g JSP Basics 0 January 25th, 2006 06:04 AM
java program todeepak_g JSP Basics 0 January 25th, 2006 06:01 AM
I need some codes to create a program skoob JSP Basics 1 April 14th, 2005 12:56 AM
source codes for book:Professional Java Programing stanax Forum and Wrox.com Feedback 1 November 2nd, 2003 10:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.