Hello,

thanks all for the answers.

On 12  2012, at 22:35 , Peter Vandenabeele wrote:

> On Thu, Jan 12, 2012 at 10:33 PM, Peter Vandenabeele <peter / vandenabeele.com
>> wrote:
> 
>> Very speculative ... could you ask it's ancestor tree?
>> 
>> Twitter::Error::BadGateway.class
>> 
> 
> Correction
> 
>  Twitter::Error::BadGateway.ancestors
> 
> that is ...
> 
> Peter


Here is the ancestors output:

greyjewel:Morula atma$ cat test.rb && ruby1.9 test.rb 
require "twitter"
puts Twitter::Error::BadGateway.ancestors
[...]
Twitter::Error::BadGateway
Twitter::Error::ServerError
Twitter::Error
StandardError
Exception
Object
Kernel
BasicObject
greyjewel:Morula atma$ 

So my error is "BadGateway" but should I use this like:

[...]
rescue Exception => (Twitter::Error::BadGateway)
[...]

I'm not sure where to go from here.