I'm noticing this question or very similar questions get posted a lot here 
(which means its a good question). I would search through the old posts and 
read what others said, there has been some very good posts on the subject. 
Below I'm posting a chunk of code that should help you answer your own question 
(i hope!). 

Also, its very early, so i may miss the mark on this, I hope it helps!

def test_1
        begin
                1 / 0
        rescue
                puts 'Error'
        end
end

def test_2
        begin
                1 / 0
        rescue => e
                puts e
        end
end

def test_3
        1 / 0
end

def test_4
        begin
                1 / 0
        rescue
                false
        end
        
        true
end

test_1
test_2

begin
        test_3
rescue => e
        puts "An error hash occured: #{e}"
end

puts test_4
_______________________________________________
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to