I was trying to to write a simple ruby program for exceptions.
My code is:
alpha = ABC.new
raise "all other exceptions"
rescue Exception => NoMethodError
rescue Exception => NameError
#pass through and fail naturally
when i execute this, i always get the output as
I am unable to understand why the NonExisting is not calling the
can someone help me with this.
Thanx in advance.