deltavista_crif_dva_interface 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -41,8 +41,12 @@ module DeltavistaCrifDvaInterface
|
|
41
41
|
|
42
42
|
def check_response!(response)
|
43
43
|
unless valid_response? response
|
44
|
-
|
45
|
-
|
44
|
+
if response.class == Net::HTTPNotFound
|
45
|
+
ex = NotFoundError.new response.class, response.body
|
46
|
+
raise ex if response.class == Net::HTTPNotFound
|
47
|
+
end
|
48
|
+
ex = ServiceNotAvailableError.new response.class, response.body
|
49
|
+
raise ex
|
46
50
|
end
|
47
51
|
response
|
48
52
|
end
|