Exception: Clearbooks::DuplicateDependencyDefined

Inherits:
ClearbooksError
  • Object
show all
Defined in:
lib/clearbooks/error/errors.rb

Instance Method Summary collapse

Methods inherited from ClearbooksError

status_code

Constructor Details

#initialize(name) ⇒ DuplicateDependencyDefined

Returns a new instance of DuplicateDependencyDefined.



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

def initialize(name)
  @name = name
end

Instance Method Details

#to_sObject



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

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