anybody using begin/rescue

i came from java world, and it is really big there. i don't see a lot in ruby code samples. just a little.

anybody out there using it? or is the errors just emailed to you?

We use it all the time to catch things and work around it...

You probably won't see it in samples since samples tend not to include much error handling...

It's there though...

philip@MacBookPro:~/.../vendor/rails $ grep -r "rescue" * | wc -l       502

-philip

When I started programming ruby I hardly ever used throw/rescue sequences, but the more I develop and the more complex the backend gets the more useful I find exceptions. Many things can be handled with inline IF statements which i think helps to eliminate the need for exceptions as much, but their are still places where its cleaner/ easier to throw an exception.

Hi --