Exception: Shikibu::MessageTimeoutError
- Defined in:
- lib/shikibu/errors.rb
Overview
Raised when a channel message receive times out
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(channel, timeout) ⇒ MessageTimeoutError
constructor
A new instance of MessageTimeoutError.
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
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
51 52 53 |
# File 'lib/shikibu/errors.rb', line 51 def channel @channel end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
51 52 53 |
# File 'lib/shikibu/errors.rb', line 51 def timeout @timeout end |