Phlip
7/18/2008 10:47:00 AM
Doug Livesey wrote:
> result = my_method rescue $!
>
> However, what I want to do is call a method on the error, like so:
> result = my_method rescue last_error.my_other_method
>
> Where last_error is the mysterious means I employ to get at the error
> raised, and my_other_method is what I want to call on it.
The last time I tried to do anything with a rescue statement modifier other than
replace its statements value, it didn't work. However...
result = my_method rescue $!.my_other_method
Does that work?
--
Phlip