Comments on: Ruby’s try{ catch } block http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/ It's Just Links Wed, 14 Sep 2011 13:47:04 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: bobby http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/comment-page-1/#comment-148278 bobby Tue, 10 Feb 2009 04:37:09 +0000 http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/#comment-148278 Thanks! Works like a charm, it was exactly what I was looking for, haha! Thanks! Works like a charm, it was exactly what I was looking for, haha!

]]>
By: Ivan Vanderbyl http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/comment-page-1/#comment-132998 Ivan Vanderbyl Sun, 07 Dec 2008 01:07:20 +0000 http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/#comment-132998 The Ruby bundle for TextMate has a nice shortcut for this: begin ⇥ (begin + [tab]) The Ruby bundle for TextMate has a nice shortcut for this:
begin ⇥ (begin + [tab])

]]>
By: Geoff http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/comment-page-1/#comment-86359 Geoff Mon, 09 Jun 2008 20:52:09 +0000 http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/#comment-86359 Hey an important missing piece is that you want: begin # something potentially bad rescue Exception=>e # handle e end I have done this with a require that wasn't available and it wouldn't work without the Exception=>e Of course Exception should be fine tuned to the Exception you are checking for. Hey an important missing piece is that you want:

begin
# something potentially bad
rescue Exception=>e
# handle e
end

I have done this with a require that wasn’t available and it
wouldn’t work without the Exception=>e

Of course Exception should be fine tuned to the Exception
you are checking for.

]]>
By: guy inny http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/comment-page-1/#comment-46114 guy inny Fri, 28 Dec 2007 16:58:13 +0000 http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/#comment-46114 I want to meet the person in ruby who came up with this idea of naming them as begin.. rescue... end. Thats one frantic whose siter would make it to every ruby programmers most dirty dreams. I want to meet the person in ruby who came up with this idea of naming them as begin.. rescue… end.
Thats one frantic whose siter would make it to every ruby programmers most dirty dreams.

]]>
By: ynw http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/comment-page-1/#comment-34937 ynw Sat, 20 Oct 2007 09:36:49 +0000 http://www.tonyspencer.com/2007/10/16/rubys-try-catch-block/#comment-34937 being ... rescue ... else ... ensure ... end Something else to google about :) being

rescue

else

ensure

end

Something else to google about :)

]]>