Module: GData
- Defined in:
- lib/base.rb,
lib/calendar_service.rb,
lib/contacts_service.rb,
lib/gdata_jruby_client.rb,
lib/google_oauth_parameters.rb
Defined Under Namespace
Classes: AuthenticationError, ResourceNotFound, ServiceForbidden
Class Method Summary collapse
Class Method Details
.gdata_exception_for(e) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/base.rb', line 14 def self.gdata_exception_for(e) case e. when /AuthenticationException/ AuthenticationError.new(e.) when /ServiceForbiddenException/ ServiceForbidden.new(e.) when /ResourceNotFoundException/ ResourceNotFound.new(e.) else e end end |