begin . . your code here . . rescue Timeout_Error => e # you can mention the error you want to rescue if you know them, or just leave it as rescue puts e . . some more code . rescue puts $! end _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
- [Wtr-general] How to catch the exception in the Ruby... rkkanneganti
- Re: [Wtr-general] How to catch the exception in... sathees
- Re: [Wtr-general] How to catch the exceptio... rkkanneganti
- Re: [Wtr-general] How to catch the exception in... Ċ½eljko Filipin
- Re: [Wtr-general] How to catch the exceptio... rkkanneganti
- Re: [Wtr-general] How to catch the exception in... rkkanneganti
- Re: [Wtr-general] How to catch the exceptio... Naga Harish Kanegolla
- Re: [Wtr-general] How to catch the exce... rkkanneganti
