Exception: Fox::InvalidConfiguration

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(errors) ⇒ InvalidConfiguration

Returns a new instance of InvalidConfiguration.



120
121
122
# File 'lib/fox/error/errors.rb', line 120

def initialize(errors)
  @errors = errors
end

Instance Method Details

#to_sObject



124
125
126
127
128
129
130
131
132
133
# File 'lib/fox/error/errors.rb', line 124

def to_s
  out = "Invalid configuration:\n"
  @errors.each do |key, errors|
    errors.each do |error|
      out << "  #{key} #{error}\n"
    end
  end

  out.strip
end