From: flebber Date: 2010-12-07T19:55:17+09:00 Subject: Re: why catch block directly exeute On Dec 7, 9:08 pm, "Durga B." wrote: > catch (:finish) do >     puts "Generated 1000 random numbers without generating 123!" >     end > > The above code if not throw or any thing call and execute directly . > How is it works please any one explain and if possible give a example > for throw and catch block. > > -- > Posted viahttp://www.ruby-forum.com/. http://ruby.activeventure.com/programmingruby/book/tut_exceptions.html http://ruby-doc.org/core/classes/Exception.html http://stackoverflow.com/questions/2018137/where-are-catch-and-throw-useful-in-ruby