Exception: Shikibu::MessageTimeoutError

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

Overview

Raised when a channel message receive times out

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel, timeout) ⇒ MessageTimeoutError



53
54
55
56
57
# File 'lib/shikibu/errors.rb', line 53

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

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



51
52
53
# File 'lib/shikibu/errors.rb', line 51

def channel
  @channel
end

#timeoutObject (readonly)

Returns the value of attribute timeout.



51
52
53
# File 'lib/shikibu/errors.rb', line 51

def timeout
  @timeout
end