Change in ovirt-engine-sdk-java[sdk_4.1]: Check return code of the HTTP reponses

Code Review gerrit at ovirt.org
Fri Jan 13 13:09:21 UTC 2017


>From Ondra Machacek <omachace at redhat.com>:

Ondra Machacek has submitted this change and it was merged.

Change subject: Check return code of the HTTP reponses
......................................................................


Check return code of the HTTP reponses

If API will return HTTP response code higher than 400,
the SDK should raise ovirtsdk4.Error, with the meassage
what response code was returned by API.

Change-Id: I462c40c30739b502e7f099aa11ade170abf10b6c
Signed-off-by: Ondra Machacek <omachace at redhat.com>
---
M sdk/src/main/java/org/ovirt/engine/sdk4/internal/services/ServiceImpl.java
M sdk/src/test/java/org/ovirt/engine/sdk4/VmsServiceTest.java
2 files changed, 36 insertions(+), 24 deletions(-)

Approvals:
  Ondra Machacek: Verified; Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/70334
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I462c40c30739b502e7f099aa11ade170abf10b6c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: sdk_4.1
Gerrit-Owner: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>


More information about the Engine-commits mailing list