Exception: Puppet::Exceptions::ExpectationsFailError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/puppet/exceptions/expectations_fail.rb

Overview

Exceptions trown when given Expectations aren’t met

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = '') ⇒ ExpectationsFailError

Returns a new instance of ExpectationsFailError.



9
10
11
# File 'lib/puppet/exceptions/expectations_fail.rb', line 9

def initialize(message = '')
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/puppet/exceptions/expectations_fail.rb', line 7

def message
  @message
end