Exception: SimpleXChat::UnexpectedResponseError
- Inherits:
-
GenericError
- Object
- StandardError
- GenericError
- SimpleXChat::UnexpectedResponseError
- Defined in:
- lib/simplex-chat/errors.rb
Instance Method Summary collapse
-
#initialize(type, expected_type) ⇒ UnexpectedResponseError
constructor
A new instance of UnexpectedResponseError.
Constructor Details
#initialize(type, expected_type) ⇒ UnexpectedResponseError
Returns a new instance of UnexpectedResponseError.
16 17 18 |
# File 'lib/simplex-chat/errors.rb', line 16 def initialize(type, expected_type) super "Unexpected response type: #{type} (expected: #{expected_type})" end |