From: Raj pal Date: 2013-01-29T18:01:50+09:00 Subject: Re: question on watir class MyTestClass method1 #Do stuff end method2 #Do stuff end rescue #Do stuff here end you gave this example for writing exception inside the class, but it is not working for me, consider the program below, class Raj def hello puts 'hello' 1/0 end def hi puts 'hi' end rescue Exception => e puts 'the exception has been raised' end a=Raj.new a.hello a.hi Here exception error of division by 0 is not caught by exception, why it is so? Raj -- Posted via http://www.ruby-forum.com/.