Class: TimeoutCatchingRestBuilder
- Inherits:
-
RestBuilder
- Object
- RestBuilder
- TimeoutCatchingRestBuilder
- Defined in:
- lib/rally_rest_api/timeout_catching_rest_builder.rb
Overview
:nodoc all
Constant Summary
Constants inherited from RestBuilder
Instance Attribute Summary
Attributes inherited from RestBuilder
#base_url, #http_headers, #logger, #password, #username
Instance Method Summary collapse
Methods inherited from RestBuilder
#builder_block, #camel_case_word, #check_for_errors, #collection_type?, #convert_arg_for_builder, #create_builder, #create_rest, #debug, #delete_rest, #initialize, #marshal_dump, #marshal_load, #post_xml, #read_rest, #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 |