Exception: I3Ipc::Protocol::WrongType
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- I3Ipc::Protocol::WrongType
- Defined in:
- lib/i3ipc/protocol.rb
Overview
Throws when received data with not expected type.
Instance Method Summary collapse
-
#initialize(expected, actual) ⇒ WrongType
constructor
A new instance of WrongType.
- #message ⇒ Object
Constructor Details
#initialize(expected, actual) ⇒ WrongType
Returns a new instance of WrongType.
34 35 36 37 |
# File 'lib/i3ipc/protocol.rb', line 34 def initialize(expected, actual) @expected = expected @actual = actual end |
Instance Method Details
#message ⇒ Object
39 40 41 |
# File 'lib/i3ipc/protocol.rb', line 39 def %Q{Message type expected '#{@expected}', but was '#{@actual}'} end |