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

Exception: Aws::Errors::MissingContentLength

Inherits:
RuntimeError
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/errors.rb

Overview

Raised when a streaming operation has requiresLength trait enabled but request payload size/length cannot be calculated

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ MissingContentLength

Returns a new instance of MissingContentLength



55
56
57
58
# File 'gems/aws-sdk-core/lib/aws-sdk-core/errors.rb', line 55

def initialize(*args)
  msg = 'Required `Content-Length` value missing for the request.'
  super(msg)
end