Method: Puppet::Pops::Validation::Diagnostic#initialize
- Defined in:
- lib/puppet/pops/validation.rb
#initialize(severity, issue, file, source_pos, arguments = {}, exception = nil) ⇒ Diagnostic
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Diagnostic.
233 234 235 236 237 238 239 240 241 242 |
# File 'lib/puppet/pops/validation.rb', line 233 def initialize severity, issue, file, source_pos, arguments = {}, exception = nil @severity = severity @issue = issue @file = file @source_pos = source_pos @arguments = arguments # TODO: Currently unused, the intention is to provide more information (stack backtrace, etc.) when # debugging or similar - this to catch internal problems reported as higher level issues. @exception = exception end |