class RubyMemcheck::ValgrindError

def initialize(configuration, loaded_binaries, error)

def initialize(configuration, loaded_binaries, error)
  @kind = error.at_xpath("kind").content
  @msg =
    if kind_leak?
      error.at_xpath("xwhat/text").content
    else
      error.at_xpath("what").content
    end
  @stack = Stack.new(configuration, loaded_binaries, error.at_xpath("stack"))
  @configuration = configuration
  suppression_node = error.at_xpath("suppression")
  if configuration.valgrind_generate_suppressions?
    @suppression = Suppression.new(configuration, suppression_node)
  elsif suppression_node
    raise SUPPRESSION_NOT_CONFIGURED_ERROR_MSG
  end
end