Exception: THTP::BadResponseError
- Inherits:
-
ServerError
- Object
- StandardError
- Error
- ServerError
- THTP::BadResponseError
- 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
-
#initialize(rpc, response = nil) ⇒ BadResponseError
constructor
A new instance of BadResponseError.
Methods inherited from ServerError
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
.type ⇒ Object
49 50 51 |
# File 'lib/thtp/errors.rb', line 49 def self.type Thrift::ApplicationException::MISSING_RESULT end |