lib/moneta/api/service_methods.rb in moneta-api-1.2.1 vs lib/moneta/api/service_methods.rb in moneta-api-1.3.0
- old
+ new
@@ -183,9 +183,11 @@
response = client.call(method, {
message: request.respond_to?(:to_hash) ? request.to_hash : request
})
ResponseFactory.build(response)
+ rescue Savon::SOAPFault => e
+ raise Moneta::Api::RuntimeException.new(e.message)
end
def validate!(method, request)
expected_request_class = get_expected_request_class(method)