Exception: THTP::BadResponseError

Inherits:
ServerError show all
Defined in:
lib/thtp/errors.rb

Overview

We don’t recognise the response (client & server schemas don’t match, or it’s just invalid)

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ServerError

#to_thrift

Constructor Details

#initialize(rpc, response = nil) ⇒ BadResponseError

Returns a new instance of BadResponseError.



53
54
55
# File 'lib/thtp/errors.rb', line 53

def initialize(rpc, response = nil)
  super "#{rpc} failed: unknown result#{": '#{response.inspect}'" if response}"
end

Class Method Details

.typeObject



49
50
51
# File 'lib/thtp/errors.rb', line 49

def self.type
  Thrift::ApplicationException::MISSING_RESULT
end