From: ahoward Date: 2002-11-10T02:21:39+09:00 Subject: Re: help - redirect/flush/sync problem On Sun, 10 Nov 2002, ts wrote: > ruby treat the exception when it finish i think the problem is that NameError does not subclass StandardError, because this *does* work : begin $stderr.reopen File.open 'stderr', 'w' $stderr.sync = true foo # this raises an exception... rescue NameError => err $stderr.puts err ensure $stderr.flush puts IO.readlines 'stderr' end irb(main):001:0> NameError.new # irb(main):002:0> NameError.new.is_a? StandardError false does anyone know why this is? -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================