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.



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

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.



131
132
133
# File 'lib/puppet/error.rb', line 131

def error_data
  @error_data
end