class R10K::Settings::Collection::ValidationError

Attributes

errors[R]

Public Class Methods

new(mesg, options = {}) click to toggle source
Calls superclass method R10K::Error.new
# File lib/r10k/settings/collection.rb, line 107
def initialize(mesg, options = {})
  super
  @errors = options[:errors]
end

Public Instance Methods

format() click to toggle source
# File lib/r10k/settings/collection.rb, line 112
def format
  struct = []
  struct << "#{message}:"
  @errors.each_pair do |name, nested|
    struct << indent(structure_exception(name, nested))
  end
  struct.join("\n")
end