Exception: THTP::UnknownMessageType
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- THTP::UnknownMessageType
- Defined in:
- lib/thtp/errors.rb
Overview
Indicates an unexpected and unknown message type (HTTP status)
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rpc, status, message) ⇒ UnknownMessageType
constructor
A new instance of UnknownMessageType.
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, ) super "#{rpc} returned unknown response code #{status}: #{}" end |
Class Method Details
.type ⇒ Object
118 119 120 |
# File 'lib/thtp/errors.rb', line 118 def self.type Thrift::ApplicationException::INVALID_MESSAGE_TYPE end |