class PuppetMetadata::InvalidMetadataException
An exception indicating the metadata is invalid
@attr_reader [Array[Hash[Symbol, String]]] errors
The errors in the metadata
Attributes
errors[R]
Public Class Methods
new(errors)
click to toggle source
Returns a new instance of InvalidMetadataException
@param [Array[Hash[Symbol, String]]] errors
The errors in the metadata
Calls superclass method
# File lib/puppet_metadata/metadata.rb, line 14 def initialize(errors) messages = errors.map { |error| error[:message] } super("Invalid metadata: #{messages.join(', ')}") @errors = errors end