March 2011
1 post
3 tags
Ruby retry exceptions
I just finished coding my loop when it struck me and I searched for a solution which feels more ruby like.
What I was trying to achieve is executing a piece of code until it ran without an exception. This might sound stupid, but in some cases it makes perfect sense. In this specific case, I was fetching secure data from an external provider via SSL connection. Unfortunately, the SSL connection...