Exception: Puppet::ErrorWithData

Inherits:
Error show all
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

Attributes included from ExternalFileError

#file, #line, #pos, #puppetstack

Attributes inherited from Error

#original

Instance Method Summary collapse

Methods included from ExternalFileError

#to_s

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, message, file: nil, line: nil, pos: nil, original: nil)
  super(message, file, line, pos, original)
  @error_data = error_data
end

Instance Attribute Details

#error_dataObject (readonly)

Returns the value of attribute error_data.



135
136
137
# File 'lib/puppet/error.rb', line 135

def error_data
  @error_data
end