Exception: DurableFlow::ChildWorkflowFailedError
- Defined in:
- lib/durable_flow/errors.rb
Instance Attribute Summary collapse
-
#error_class ⇒ Object
readonly
Returns the value of attribute error_class.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#run_id ⇒ Object
readonly
Returns the value of attribute run_id.
-
#workflow_class ⇒ Object
readonly
Returns the value of attribute workflow_class.
Instance Method Summary collapse
-
#initialize(run_id:, workflow_class:, error_class: nil, error_message: nil) ⇒ ChildWorkflowFailedError
constructor
A new instance of ChildWorkflowFailedError.
Constructor Details
#initialize(run_id:, workflow_class:, error_class: nil, error_message: nil) ⇒ ChildWorkflowFailedError
Returns a new instance of ChildWorkflowFailedError.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/durable_flow/errors.rb', line 11 def initialize(run_id:, workflow_class:, error_class: nil, error_message: nil) @run_id = run_id @workflow_class = workflow_class @error_class = error_class @error_message = details = [ workflow_class, run_id ].compact.join(" ") = "Child workflow #{details} failed" = "#{}: #{error_class}" if error_class.present? = "#{} - #{}" if .present? super() end |
Instance Attribute Details
#error_class ⇒ Object (readonly)
Returns the value of attribute error_class.
9 10 11 |
# File 'lib/durable_flow/errors.rb', line 9 def error_class @error_class end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
9 10 11 |
# File 'lib/durable_flow/errors.rb', line 9 def @error_message end |
#run_id ⇒ Object (readonly)
Returns the value of attribute run_id.
9 10 11 |
# File 'lib/durable_flow/errors.rb', line 9 def run_id @run_id end |
#workflow_class ⇒ Object (readonly)
Returns the value of attribute workflow_class.
9 10 11 |
# File 'lib/durable_flow/errors.rb', line 9 def workflow_class @workflow_class end |