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

Instance Method Details

#call(*args) ⇒ Object

Description of #call

Parameters:

  • args (Array<Object>)

    describe_args_here

Returns:

  • (Object)

    description_of_returned_object



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