File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Another code snippet about SQLException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Another code snippet about SQLException" Watch "Another code snippet about SQLException" New topic

Another code snippet about SQLException

Cameron Park
Ranch Hand

Joined: Apr 06, 2001
Posts: 371
Hi, here is another code snippet about SQLException that I am not sure about:
public void close() throws SQLException{
catch(SQLException e){
throw e;
Isn't the exception handling in this method redundant?
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I agree. Here's the link:
subject: Another code snippet about SQLException
It's not a secret anymore!