Class: Thrift::FaradayTransport::UnexpectedHTTPCode

Inherits:
TransportException
  • Object
show all
Defined in:
lib/thrift/faraday_transport.rb

Overview

Unexpected HTTP code raise #flush when HTTP respond with not 200 status

Instance Method Summary collapse

Constructor Details

#initialize(http_code) ⇒ UnexpectedHTTPCode

Initialize new UnexpectedHTTPCode

Parameters:

  • http_code (Integer)
    • response http code


18
19
20
21
# File 'lib/thrift/faraday_transport.rb', line 18

def initialize(http_code)
  super(TransportException::UNKNOWN, "Invalid HTTP code #{http_code}")
  @http_code = http_code
end