Class: TimeoutCatchingRestBuilder

Inherits:
RestBuilder show all
Defined in:
lib/rally_rest_api/timeout_catching_rest_builder.rb

Overview

:nodoc all

Constant Summary

Constants inherited from RestBuilder

RestBuilder::COLLECTION_TYPES

Instance Attribute Summary

Attributes inherited from RestBuilder

#base_url, #http_headers, #logger, #password, #use_cookies, #username

Instance Method Summary collapse

Methods inherited from RestBuilder

#add_cookies, #builder_block, #camel_case_word, #check_for_errors, #collection_type?, #convert_arg_for_builder, #create_builder, #create_rest, #debug, #delete_rest, #format_cookie, #initialize, #marshal_dump, #marshal_load, #parse_cookies, #post_xml, #read_rest, #store_cookies, #update_rest

Constructor Details

This class inherits a constructor from RestBuilder

Instance Method Details

#send_request(url, req, username, password) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/rally_rest_api/timeout_catching_rest_builder.rb', line 2

def send_request(url, req, username, password)
  begin
    super
  rescue Timeout::Error, Errno::ETIMEDOUT => e
    @logger.warn "Caught Timeout Exception. Trying again..."
    retry
  end
end