Exception: PuppetX::Puppetlabs::FetchingAWSDataError
- Inherits:
-
Exception
- Object
- Exception
- PuppetX::Puppetlabs::FetchingAWSDataError
- Defined in:
- lib/puppet_x/puppetlabs/aws.rb
Overview
We purposefully inherit from Exception here due to PUP-3656 If we throw something based on StandardError prior to Puppet 4 the exception will prevent the prefetch, but the provider will continue to run with incorrect data.
Instance Method Summary collapse
-
#initialize(region, type, message = nil) ⇒ FetchingAWSDataError
constructor
A new instance of FetchingAWSDataError.
- #to_s ⇒ Object
Constructor Details
#initialize(region, type, message = nil) ⇒ FetchingAWSDataError
Returns a new instance of FetchingAWSDataError.
8 9 10 11 12 |
# File 'lib/puppet_x/puppetlabs/aws.rb', line 8 def initialize(region, type, =nil) @message = @region = region @type = type end |
Instance Method Details
#to_s ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/puppet_x/puppetlabs/aws.rb', line 14 def to_s """Puppet detected a problem with the information returned from AWS when looking up #{@type} in #{@region}. The specific error was: #{@message} Rather than report on #{@type} resources in an inconsistent state we have exited. This could be because some other process is modifying AWS at the same time.""" end |