app/service_adaptors/jcr.rb in umlaut-4.1.5 vs app/service_adaptors/jcr.rb in umlaut-4.1.6
- old
+ new
@@ -131,11 +131,11 @@
nokogiri = Nokogiri::XML(isi_response.body)
# Check for errors.
if (error = (nokogiri.at('val[@name = "error"]') || nokogiri.at('error') || nokogiri.at('null[@name = "error"]')))
- raise Exception.new("Third party service error: #{error.inner_text}")
+ raise JcrResponseException.new("Third party service error: #{error.inner_text}")
end
results = nokogiri.at('map[@name ="cite_id"] map[@name="JCR"]')
@@ -148,8 +148,11 @@
:service_type_value => :highlighted_link,
:debug_info => "url: #{impact_url.inner_text}")
end
+ end
+
+ class JcrResponseException < StandardError
end
end