Exception: THTP::UnknownMessageType

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

Overview

Indicates an unexpected and unknown message type (HTTP status)

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rpc, status, message) ⇒ UnknownMessageType

Returns a new instance of UnknownMessageType.



122
123
124
# File 'lib/thtp/errors.rb', line 122

def initialize(rpc, status, message)
  super "#{rpc} returned unknown response code #{status}: #{message}"
end

Class Method Details

.typeObject



118
119
120
# File 'lib/thtp/errors.rb', line 118

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