Module: MyApiClient::Exceptions
- Extended by:
- ActiveSupport::Concern
- Includes:
- ActiveSupport::Rescuable
- Included in:
- Base
- Defined in:
- lib/my_api_client/exceptions.rb
Overview
Description of Exceptions
Instance Method Summary collapse
-
#call(*args) ⇒ Object
Description of #call.
Instance Method Details
#call(*args) ⇒ Object
Description of #call
13 14 15 16 17 18 19 20 21 |
# File 'lib/my_api_client/exceptions.rb', line 13 def call(*args) @args = args send(*args) rescue StandardError => e @retry_count ||= 0 raise unless rescue_with_handler(e) retry_result end |