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.



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

def initialize(name)
  @name = name
end

Instance Method Details

#to_sObject



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

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