Exception: DependencyError

Inherits:
Aborted show all
Defined in:
lib/rbbt/util/misc/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ DependencyError

Returns a new instance of DependencyError.



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rbbt/util/misc/exceptions.rb', line 13

def initialize(msg)
  if defined? Step and Step === msg
    step = msg
    workflow = step.path.split("/")[-3]
    new_msg = [workflow, step.short_path, step.messages.last] * " - "
    new_msg = [step.path, step.messages.last] * ": "
    super(new_msg)
  else
    super(msg)
  end
end