I’m trying to handle an two different exception cases. Using the
‘twitter’ gem I have the two following exceptions.
Here is the code: https://gist.github.com/3297666
Using irb (ruby 1.9.3x) I get :
“Twitter::Error::ClientError” - when no internet connection is available
“Twitter::Error::NotFound” - when username is not found, the supplied
twitter username does not exist.
However, no matter what the program goes with the 1st exception. Even
when the error is “Twitter::Error::NotFound”.
What am I doing wrong?
Thanks for your time & Best Regards