Exception: I3Ipc::WrongEvent
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- I3Ipc::WrongEvent
- Defined in:
- lib/i3ipc/connection.rb
Overview
Throws when subscribing to an invalid event. Valid events are listed in function event_number().
Instance Method Summary collapse
-
#initialize(event_name) ⇒ WrongEvent
constructor
A new instance of WrongEvent.
- #message ⇒ Object
Constructor Details
#initialize(event_name) ⇒ WrongEvent
Returns a new instance of WrongEvent.
8 9 10 |
# File 'lib/i3ipc/connection.rb', line 8 def initialize(event_name) @event_name = event_name end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/i3ipc/connection.rb', line 12 def %Q{Tried to subscribe to invalid event type '#{@event_name}'} end |