Exception: Seahorse::Client::NetHttp::Handler::TruncatedBodyError Private

Inherits:
IOError
  • Object
show all
Defined in:
lib/seahorse/client/net_http/handler.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(bytes_expected, bytes_received) ⇒ TruncatedBodyError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of TruncatedBodyError



15
16
17
18
19
# File 'lib/seahorse/client/net_http/handler.rb', line 15

def initialize(bytes_expected, bytes_received)
  msg = "http response body truncated, expected #{bytes_expected} "
  msg << "bytes, received #{bytes_received} bytes"
  super(msg)
end