Exception: Workflow::TaskNotFoundException

Inherits:
Exception
  • Object
show all
Defined in:
lib/rbbt/workflow.rb

Instance Method Summary collapse

Constructor Details

#initialize(workflow, task = nil) ⇒ TaskNotFoundException

Returns a new instance of TaskNotFoundException.



15
16
17
18
19
20
21
# File 'lib/rbbt/workflow.rb', line 15

def initialize(workflow, task = nil)
  if task
    super "Task '#{ task }' not found in #{ workflow } workflow"
  else
    super workflow
  end
end