class Aws::Plugins::StubResponses::Handler
def apply_stub(resp, stub)
def apply_stub(resp, stub) if Exception === stub resp.error = stub elsif Class === stub && stub.ancestors.include?(Errors::ServiceError) resp.error = stub.new(resp.context, 'stubbed error') elsif Class === stub && stub.ancestors.include?(Exception) resp.error = stub.new else resp.data = stub stub_http_body(resp) if streaming?(resp) end end