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.
84 85 86 87 |
# File 'lib/r10k/settings/collection.rb', line 84 def initialize(mesg, = {}) super @errors = [:errors] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
82 83 84 |
# File 'lib/r10k/settings/collection.rb', line 82 def errors @errors end |
Instance Method Details
#format ⇒ Object
89 90 91 92 93 94 95 96 |
# File 'lib/r10k/settings/collection.rb', line 89 def format struct = [] struct << "#{}:" @errors.each_pair do |name, nested| struct << indent(structure_exception(name, nested)) end struct.join("\n") end |