Exception: Seam::ActionAttemptFailedError

Inherits:
ActionAttemptError show all
Defined in:
lib/seam/wait_for_action_attempt.rb

Instance Attribute Summary collapse

Attributes inherited from ActionAttemptError

#action_attempt

Instance Method Summary collapse

Methods inherited from ActionAttemptError

#name

Constructor Details

#initialize(action_attempt) ⇒ ActionAttemptFailedError

Returns a new instance of ActionAttemptFailedError.



20
21
22
23
24
25
# File 'lib/seam/wait_for_action_attempt.rb', line 20

def initialize(action_attempt)
  error = action_attempt.error
  message = (error && error["message"]) || "Action attempt failed"
  super(message, action_attempt)
  @code = error && error["type"]
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



18
19
20
# File 'lib/seam/wait_for_action_attempt.rb', line 18

def code
  @code
end