Exception: Fox::DuplicateDependencyDefined

Inherits:
FoxError
  • Object
show all
Defined in:
lib/fox/error/errors.rb

Instance Method Summary collapse

Methods inherited from FoxError

status_code

Constructor Details

#initialize(name) ⇒ DuplicateDependencyDefined

Returns a new instance of DuplicateDependencyDefined.



61
62
63
# File 'lib/fox/error/errors.rb', line 61

def initialize(name)
  @name = name
end

Instance Method Details

#to_sObject



65
66
67
68
69
70
# File 'lib/fox/error/errors.rb', line 65

def to_s
  out  = "Your Foxfile contains multiple entries named "
  out << "'#{@name}'. Please remove duplicate dependencies, or put them in "
  out << "different groups."
  out
end