Class: WorldpayCnp::XML::Nokogiri::Parser

Inherits:
Object
  • Object
show all
Includes:
Parser
Defined in:
lib/worldpay_cnp/xml/nokogiri.rb

Instance Method Summary collapse

Instance Method Details

#call(xml) ⇒ Object



7
8
9
10
11
# File 'lib/worldpay_cnp/xml/nokogiri.rb', line 7

def call(xml)
  super(xml)
rescue ::Nokogiri::XML::SyntaxError => error
  raise Error::XmlParseError, error.message, error.backtrace
end