Exception: Seahorse::Client::NetHttp::Handler::TruncatedBodyError Private
- Inherits:
-
IOError
- Object
- IOError
- Seahorse::Client::NetHttp::Handler::TruncatedBodyError
- 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
-
#initialize(bytes_expected, bytes_received) ⇒ TruncatedBodyError
constructor
private
A new instance of TruncatedBodyError.
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.
13 14 15 16 17 |
# File 'lib/seahorse/client/net_http/handler.rb', line 13 def initialize(bytes_expected, bytes_received) msg = "http response body truncated, expected #{bytes_expected} " msg << "bytes, received #{bytes_received} bytes" super(msg) end |