Exception: DependencyRbbtException

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

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ DependencyRbbtException

Returns a new instance of DependencyRbbtException.



78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/rbbt/util/misc/exceptions.rb', line 78

def initialize(msg)
  if defined? Step and Step === msg
    step = msg

    new_msg = nil
    new_msg = [step.path, step.messages.last] * ": "

    super(new_msg)
  else
    super(msg)
  end
end