From: Pat Maddox Date: 2007-11-09T07:19:35+09:00 Subject: Re: Best practises for exception handling On Nov 8, 2007 2:04 PM, Alex Dunae 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