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

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.



112
113
114
115
# File 'lib/puppet/error.rb', line 112

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.



110
111
112
# File 'lib/puppet/error.rb', line 110

def error_data
  @error_data
end