Exception: PuppetMetadata::InvalidMetadataException
- Inherits:
-
Exception
- Object
- Exception
- PuppetMetadata::InvalidMetadataException
- Defined in:
- lib/puppet_metadata/metadata.rb
Overview
An exception indicating the metadata is invalid
Instance Attribute Summary collapse
-
#errors ⇒ Array[Hash[Symbol, String]]
readonly
The errors in the metadata.
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidMetadataException
constructor
Returns a new instance of InvalidMetadataException.
Constructor Details
#initialize(errors) ⇒ InvalidMetadataException
Returns a new instance of InvalidMetadataException
14 15 16 17 18 |
# File 'lib/puppet_metadata/metadata.rb', line 14 def initialize(errors) = errors.map { |error| error[:message] } super("Invalid metadata: #{.join(', ')}") @errors = errors end |
Instance Attribute Details
#errors ⇒ Array[Hash[Symbol, String]] (readonly)
The errors in the metadata
8 9 10 |
# File 'lib/puppet_metadata/metadata.rb', line 8 def errors @errors end |