Exception: Shikibu::EventTimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/shikibu/errors.rb

Overview

Raised when waiting for an event times out

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_type, timeout) ⇒ EventTimeoutError

Returns a new instance of EventTimeoutError.



42
43
44
45
46
# File 'lib/shikibu/errors.rb', line 42

def initialize(event_type, timeout)
  @event_type = event_type
  @timeout = timeout
  super("Timeout waiting for event '#{event_type}' after #{timeout} seconds")
end

Instance Attribute Details

#event_typeObject (readonly)

Returns the value of attribute event_type.



40
41
42
# File 'lib/shikibu/errors.rb', line 40

def event_type
  @event_type
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



40
41
42
# File 'lib/shikibu/errors.rb', line 40

def timeout
  @timeout
end