Exception: Shikibu::WaitForChannelSignal

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

Overview

Internal signal for workflow suspension (waiting for channel message)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel:, mode:, timeout_at: nil, activity_id: nil) ⇒ WaitForChannelSignal

Returns a new instance of WaitForChannelSignal.



119
120
121
122
123
124
125
# File 'lib/shikibu/errors.rb', line 119

def initialize(channel:, mode:, timeout_at: nil, activity_id: nil)
  @channel = channel
  @mode = mode
  @timeout_at = timeout_at
  @activity_id = activity_id
  super("Waiting for message on channel #{channel}")
end

Instance Attribute Details

#activity_idObject (readonly)

Returns the value of attribute activity_id.



117
118
119
# File 'lib/shikibu/errors.rb', line 117

def activity_id
  @activity_id
end

#channelObject (readonly)

Returns the value of attribute channel.



117
118
119
# File 'lib/shikibu/errors.rb', line 117

def channel
  @channel
end

#modeObject (readonly)

Returns the value of attribute mode.



117
118
119
# File 'lib/shikibu/errors.rb', line 117

def mode
  @mode
end

#timeout_atObject (readonly)

Returns the value of attribute timeout_at.



117
118
119
# File 'lib/shikibu/errors.rb', line 117

def timeout_at
  @timeout_at
end