3rdpartyeve/eaal — pull request #17 by mrambossek (2014-04-01 18:57:10+00:00)
Title: better handling of HTTPErrors

not sure if this is the proper way to do it - but its better than just dying completely :)

before, could would stop unable to catch particular exceptions because it already had an HTTPError.
with this now i can do

begin
result = api.APIKeyInfo()
rescue EAAL::Exception.EveAPIException(220), EAAL::Exception.EveAPIException(222) => e
pp e.inspect
self.valid_key = false
self.save(validate: false)
return false
end

and catch specific exceptions.