Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection pooling

 
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
Saloon Keeper
Posts: 4014
18
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