From: Raj pal Date: 2013-01-29T21:18:30+09:00 Subject: Re: question on watir irb(main):013:0> begin irb(main):014:1* Raj.new.hello irb(main):015:1> rescue irb(main):016:1> puts 'the exception has been raised' irb(main):017:1> end Yes I understood now. I have another here, please have a look at this code ------------------------------------------ class Raj def hi raja gopal hello end def raja puts 'raja' end def gopal begin puts 'gopal' 1/0 rescue Exception =>e puts e end end def hello puts 'hello' end end begin Raj.new.hi rescue Exception => e puts e end ------------------------------------------- here, the exception has been caught at the gopal function,So the exception which I have written for entire class hasn't been invoked. So next hello also was called. But hello should not be invoked in my case, meanwhile I couldn't take exception handling which is within gopal function because it has some other need. what can I do to solve this problem? -- Posted via http://www.ruby-forum.com/.