Exception: NdrImport::Xml::UnmappedXpathError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ndr_import/xml/unmapped_xpath_error.rb

Overview

Raised if an unmapped xpath is identified

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(missing_xpaths) ⇒ UnmappedXpathError

Returns a new instance of UnmappedXpathError.



7
8
9
10
11
12
# File 'lib/ndr_import/xml/unmapped_xpath_error.rb', line 7

def initialize(missing_xpaths)
  @missing_xpaths = missing_xpaths
  message         = "Unmapped xpath(s): #{missing_xpaths}"

  super(message)
end

Instance Attribute Details

#missing_xpathsObject (readonly)

Returns the value of attribute missing_xpaths.



5
6
7
# File 'lib/ndr_import/xml/unmapped_xpath_error.rb', line 5

def missing_xpaths
  @missing_xpaths
end