Exception: I3Ipc::WrongEvent

Inherits:
RuntimeError
  • Object
show all
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

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

#messageObject



12
13
14
# File 'lib/i3ipc/connection.rb', line 12

def message
  %Q{Tried to subscribe to invalid event type '#{@event_name}'}
end