Exception: R10K::Settings::Collection::ValidationError
- Defined in:
- lib/r10k/settings/collection.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Attributes inherited from Error
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(mesg, options = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Error
Constructor Details
#initialize(mesg, options = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
107 108 109 110 |
# File 'lib/r10k/settings/collection.rb', line 107 def initialize(mesg, = {}) super @errors = [:errors] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
105 106 107 |
# File 'lib/r10k/settings/collection.rb', line 105 def errors @errors end |
Instance Method Details
#format ⇒ Object
112 113 114 115 116 117 118 119 |
# File 'lib/r10k/settings/collection.rb', line 112 def format struct = [] struct << "#{}:" @errors.each_pair do |name, nested| struct << indent(structure_exception(name, nested)) end struct.join("\n") end |