Exception: Chef::Exceptions::ContentLengthMismatch
- Defined in:
- lib/chef/exceptions.rb
Overview
Raised when the content length of a download does not match the content length declared in the http response.
Instance Method Summary collapse
-
#initialize(response_length, content_length) ⇒ ContentLengthMismatch
constructor
A new instance of ContentLengthMismatch.
Constructor Details
#initialize(response_length, content_length) ⇒ ContentLengthMismatch
Returns a new instance of ContentLengthMismatch.
340 341 342 |
# File 'lib/chef/exceptions.rb', line 340 def initialize(response_length, content_length) super "Response body length #{response_length} does not match HTTP Content-Length header #{content_length}." end |