Class: Seahorse::Client::Plugins::RaiseResponseErrors
- Inherits:
-
Seahorse::Client::Plugin
- Object
- Seahorse::Client::Plugin
- Seahorse::Client::Plugins::RaiseResponseErrors
- Defined in:
- lib/seahorse/client/plugins/raise_response_errors.rb
Defined Under Namespace
Classes: Handler
Instance Method Summary collapse
Methods inherited from Seahorse::Client::Plugin
#add_options, #after_initialize, after_initialize, after_initialize_hooks, #before_initialize, before_initialize, before_initialize_hooks, handlers, literal, option, options
Methods included from HandlerBuilder
#handle, #handle_request, #handle_response, #handler_for, #new_handler
Instance Method Details
#add_handlers(handlers, config) ⇒ Object
22 23 24 25 26 |
# File 'lib/seahorse/client/plugins/raise_response_errors.rb', line 22 def add_handlers(handlers, config) if config.raise_response_errors handlers.add(Handler, step: :validate, priority: 95) end end |