Exception: Puppet::ErrorWithData
- Includes:
- ExternalFileError
- Defined in:
- lib/puppet/error.rb
Overview
An Error suitable for raising an error with details in a Puppet::Datatypes::Error that can be used as a value in the Puppet Language
Instance Attribute Summary collapse
-
#error_data ⇒ Object
readonly
Returns the value of attribute error_data.
Attributes included from ExternalFileError
#file, #line, #pos, #puppetstack
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(error_data, message, file: nil, line: nil, pos: nil, original: nil) ⇒ ErrorWithData
constructor
A new instance of ErrorWithData.
Methods included from ExternalFileError
Constructor Details
#initialize(error_data, message, file: nil, line: nil, pos: nil, original: nil) ⇒ ErrorWithData
Returns a new instance of ErrorWithData.
137 138 139 140 |
# File 'lib/puppet/error.rb', line 137 def initialize(error_data, , file: nil, line: nil, pos: nil, original: nil) super(, file, line, pos, original) @error_data = error_data end |
Instance Attribute Details
#error_data ⇒ Object (readonly)
Returns the value of attribute error_data.
135 136 137 |
# File 'lib/puppet/error.rb', line 135 def error_data @error_data end |