Exception: DependencyError

Inherits:
Aborted
  • Object
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.



56
57
58
59
60
61
62
63
64
# File 'lib/rbbt/util/misc/exceptions.rb', line 56

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