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

Class: Aws::Json::ErrorHandler

Inherits:
Xml::ErrorHandler show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/json/error_handler.rb

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Seahorse::Client::Response



7
8
9
10
11
12
# File 'gems/aws-sdk-core/lib/aws-sdk-core/json/error_handler.rb', line 7

def call(context)
  @handler.call(context).on(300..599) do |response|
    response.error = error(context)
    response.data = nil
  end
end