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.



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/rbbt/util/misc/exceptions.rb', line 45

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