Exception: Fox::InvalidConfiguration
- Defined in:
- lib/fox/error/errors.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidConfiguration
constructor
A new instance of InvalidConfiguration.
- #to_s ⇒ Object
Methods inherited from FoxError
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_s ⇒ Object
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 |