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!
···
--
Posted via http://www.ruby-forum.com/.