Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

connection pooling  RSS feed

 
Tim Johnsen
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to return a connection in my class if there is an SQL error. I am currently doing this now with a finally block but is there any other way to achieve this?
 
Scott Selikoff
author
Bartender
Posts: 4085
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A catch block can redirect on exceptions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!