- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
begin
# etc
rescue Exception => e
case e
when LinkedIn::Unauthorized
account.invalidate_token if !account.invalid_token?
raise InvalidTokenException.new(account.primary, provider_name)
when LinkedIn::InformLinkedIn, LinkedIn::Unavailable #LinkedIn::Unavailable represents 502..503 error codes & LinkedIn::InformLinkedIn represent 500
raise UnexpectedApiException.new(provider_name)
else
handle_api_exception(e, e.message)
end
end
Lure Of Chaos 06.09.2011 16:30 # 0
gegMOPO4 06.09.2011 18:16 # 0
Lure Of Chaos 06.09.2011 18:33 # +1
Vitaly44 14.02.2012 16:19 # 0
guest8 09.04.2019 11:27 # −999