You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Seahorse::Client::Plugins::RaiseResponseErrors

Inherits:
Seahorse::Client::Plugin show all
Defined in:
gems/aws-sdk-core/lib/seahorse/client/plugins/raise_response_errors.rb

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, #before_initialize, before_initialize, option

Methods included from HandlerBuilder

#handle, #handle_request, #handle_response

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



20
21
22
23
24
# File 'gems/aws-sdk-core/lib/seahorse/client/plugins/raise_response_errors.rb', line 20

def add_handlers(handlers, config)
  if config.raise_response_errors
    handlers.add(Handler, step: :validate, priority: 95)
  end
end