Exception: DependencyError
- Defined in:
- lib/rbbt/util/misc/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg) ⇒ DependencyError
constructor
A new instance of DependencyError.
Constructor Details
#initialize(msg) ⇒ DependencyError
Returns a new instance of DependencyError.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rbbt/util/misc/exceptions.rb', line 24 def initialize(msg) if defined? Step and Step === msg step = msg workflow = step.path.split("/")[-3] new_msg = [workflow, step.short_path, step..last] * " - " new_msg = [step.path, step..last] * ": " super(new_msg) else super(msg) end end |