On Nov 8, 2007 2:04 PM, Alex Dunae <alex / dunae.ca> wrote: > I'm write a wrapper for a web service and am wondering about the best > way to handle exceptions. > > The main method in the wrapper sends either a HEAD or GET request to a > web server using Net::HTTP. > > Should I catch any exceptions thrown by Net::HTTP and then throw back > my own exception, or should I leave the exceptions totally un-handled? > > Alex > > > I would raise a new error that's on the same level of abstraction as the calling code. Pat