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


125
126
127
128
# File 'lib/puppet/error.rb', line 125

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


123
124
125
# File 'lib/puppet/error.rb', line 123

def error_data
  @error_data
end