Error handling and recovery

I have a module which specifically deals with connections to a MSSQL
database. Contained in this module is a method which actually opens the
connection. The code contained in the method is wrapped w/in a
begin…rescue…end block. If any sort of an error occurs, the code in
the rescue block is supposed to to re-raise the error back to the
calling module and let it deal with error reporting/recovery. The
problem is that the code in the rescue block of the module that’s
calling the method to open the connection is not running. I’d understood
that Ruby would search back thru the callstack looking for a rescue
block when an error was raised. Obviously I’m missing something here!

On 5/30/06, Patrick S. [email protected] wrote:
[Error not being re-raised]

Obviously I’m missing something here!

And we’re missing some code. Code makes it a lot easier to understand
what you’re doing, how you’re doing it, and what you’re doing wrong.

Peace.

nikolai